Create a second root account

Sometimes you can’t give someone the root password but you he/she must have root access. You can follow this steps to create a additional root account:
Add a new user:

# useradd newuser

Set a password for the new user

# passwd newuser

Once done, edit the ‘passwd’ file

# nano /etc/passwd

set the UID:GUD bits to 0:0. Say for example the new user is ‘newuser’, the line should look like

newuser:x:0:0::/home/newuser:/bin/bash


Author: Thomas Faddegon

Do you like my posts and want to do something back? You can buy me a beer :)