Today we shall see, how to make an exact replica of a root user which shall behave and control what all the different functions that a normal sudo or a root users controls in Linux.

Create a user, let’s call him akupedia, grant akupediathe same privileges as root and set a password for this account:

$ sudo useradd -ou 0 -g 0 akupedia
$ sudo passwd akupedia

If you have already had a user akupedia and you want to grant him root privileges (make him a second root user):

$ grep akupedia /etc/passwd

For this, it is required to edit the file /etc/passwd and just change UID and GID to 0.

That’s it. Done !

By Akash Angle

I am a Full time Linux user who has quit using Windows for unknown reasons, making my life truly open source.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x