Ubuntu 10.04 : Enable/Disable root account
Well, today I had installed Ubuntu 10.04 and my immediate action was to change the root account password, I followed the usual method “System>Administration>Users and Groups” but couldn’t find any way to change it. Then I realized that the root account might inactive by default. I found myself correct when I searched on web.
Now, if we wished to carry out something with root permission, we need to type the keyword ‘sudo’ before the command. ‘sudo’ means superuser do. When ever we use ‘sudo’, it will prompt for the ‘Password’, to which we need to enter the specific user password.
However, we can still enable the root account by using the following command
$sudo passwd root :- This will prompt for a new root password and once you confirm it, our root account will be activated. We can further log in to root user by using the command
$su (‘su’ stands for super user)
To disable or lock the root account we can use the following command
$sudo passwd -l root

Recent Comments