Where is root? or how to enable root login in Ubuntu

Ubuntu developers made a conscientious decision to disable the administrative root account by default
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.

Leave a Reply

Your email address will not be published. Required fields are marked *