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

這篇文章有幫助嗎? 0 Users Found This Useful (0 Votes)