Sunday 1 July 2012

Enable Disable root account in ubuntu

In Ubuntu Linux distribution root account not enable. But if user want to do some command with root permission on the terminal sudo command should be written before command. sudo stands for super user do. sudo command require password. Below command can be used to enable root account:
$sudo yourpassword root
Above command will prompt for new root password after confirming root account can be logged in.
To disable root account in ubuntu have to lock root account by using below command:
$sudo password -l root
Better way to work on a root console below command is used:
$sudo -i

No comments:

Post a Comment