|
How to enable and set password for root in Ubuntu |
|
|
|
|
Written by Amanatullah khalil
|
|
Saturday, 23 May 2009 |
|
Ubuntu developers made a conscientious decision to disable the administrative root account by default in all Ubuntu installations. This does not mean that the root account has been deleted or that it may not be accessed. It merely has been given a password which matches no possible encrypted value, therefore may not log in directly by itself. Instead, users are encouraged to make use of a tool by the name of sudo to carry out system administrative duties. Sudo allows an authorized user to temporarily elevate their privileges using their own password instead of having to know the password belonging to the root account. This simple yet effective methodology provides accountability for all user actions, and gives the administrator granular control over which actions a user can perform with said privileges. - If for some reason you wish to enable the root account, simply give it a password:
sudo passwd Sudo will prompt you for your password, and then ask you to supply a new password for root as shown below: [sudo] password for username: (enter your own password) Enter new UNIX password: (enter a new password for root) Retype new UNIX password: (repeat new password for root) passwd: password updated successfully - To disable the root account, use the following passwd syntax:
sudo passwd -l root - You should read more on Sudo by checking out it’s man page:
man sudo By default, the initial user created by the Ubuntu installer is a member of the group “admin” which is added to the file /etc/sudoers as an authorized sudo user. If you wish to give any other account full root access through sudo, simply add them to the admin group. _________________________________________________________________________________ Thanks to http://techgurulive.com/2009/01/06/how-to-enable-and-set-password-for-root-in-ubuntu/
|