Enabling root user in Ubuntu
Instructions on how to enable root user in a newly installed Ubuntu server.
The root user in Ubuntu is disabled by default because the password is not set.
To enable root user:
1. Set root password
Enter new UNIX password: # set password
Retype new UNIX password: # confirm password
passwd: password updated successfully
Password: # enter root password
2. Limit users to switch to root
(Find line): #auth required pam_wheel.so
(Change to): auth required pam_wheel.so group=adm
3. Enable root login for OpenSSH
(Find line): #PermitRootLogin no
(Change to): PermitRootLogin yes
(Find line): #PasswordAuthentication no
(Change to): PasswordAuthentication yes
4. Restarting OpenSSH
Red text = input commands
:~$ = example of what may appear on screen depending on hostname assigned etc.
Powered by WHMCompleteSolution