How do I log on to my root account when I turn on my computer instead of logging on as an ordinary user? This means that when I log in with my root account, any software is opened by default root and has all the rights to the file.
Asked
Active
Viewed 524 times
2 Answers
5
I'll give you an answer, but first here's a warning.
It's dangerous to do this, and usually not recommended at all; you're better off using sudo. I myself have had my system destroyed this way when I was kind of new to Linux.
However, here's how you do this if you really want to risk a broken system:
- Fire up a terminal
- Execute
sudo -i - Enter your password
- Run
passwd - Enter a secure password for the
rootuser (different from your main user) - Repeat the password
- Run
nano /etc/lightdm/lightdm.conf(replace nano with the text editor of your choice) Add:
[SeatDefaults] greeter-session=unity-greeter user-session=ubuntu greeter-show-manual-login=trueto the bottom of said file.
If you followed these steps you should be able to login as root, but as I said before: don't do this if you don't know what can go wrong.
Source: configserverfirewall.com
1
Its also possible to add your "ordinary user" to groups, that would allow you to edit files. Like, say, add to apache group, if you play with /etc/apache files. Alternatively, you can change the owner of the files you need, with chown 'ordinary user' /etc/apache/conf... - use with caution ( dont do chown ... /etc/* :-)
Holger Morgen
- 191