Three areas need to be modified:

/etc/passwd

/etc/shadow

/etc/sudoers

 

1./etc/passwd and/etc/shadow

Change the first line of root to a new username separately

2./etc/sudoers

root ALL=(ALL) ALL

New username ALL=(ALL) ALL

Was this answer helpful? 0 Users Found This Useful (0 Votes)