Saturday, October 11, 2008

unlocking ande Re-locking root account, in ubuntu

Except for a few instances, there is no need to unlock the root account on an Ubuntu system and Ubuntu suggests that you do not do so. The following command unlocks the root account by assigning a password to it:
$ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Relocking the root

If you decide you want to lock the root account after unlocking it, give the command sudo passwd –l root. You can unlock it again with the preceding command. to unlock:- passwd -u useraccount

tested in ubuntu 8.04

No comments:

Post a Comment