Ubuntu-150px Tips: Changing Root Mode in Ubuntu/Kubuntu - The Old WaySome people find the default root access (sudo) in Ubuntu/Kubuntu distributions little frustrating and would rather prefer to have it the old way, that is by typing su followed by password and then performing the tasks as root.

Here is how it is done:

me@a64untu:~$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
me@a64untu:~$ sudo -i

Now, as root, using your favorite editor, edit /etc/sudoers to enable a root account. You need to add rootpw to the line labeled “Defaults.” (using vim as an example, the command will be)

me@a64untu:~# vim /etc/sudoers

add rootpw to the Defaults line:

#Defaults
Defaults !lecture,tty_tickets,!fqdn,rootpw

Now, you can try out your new root account as usual:

me@a64untu:~$ su
Password:
me@a64untu:/home/me#

As you can see now you have symbol # which states that you are being logged-in as root.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Print This Post Print This Post

If you like this article then subscribe to Linux and Open Source Blog and get the latest articles delivered to your Feedreader. If you want to recieve latest articles in your email click here.

Similar & Related Posts: