Create an exact root user in Linux !

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
akupedia:x:1001:1001::/home/akupedia:/bin/bash

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

That’s it. Done !

Akash Angle

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

Recent Posts

Get the most juice from your ISP/router — setting MTU size & other handy tweaks

This is not an ad-vocation by any means for TP-link branding, however a real life…

8 months ago

How to make any Android phone up-to 3x faster – Developer options unleashed

First of all we need to hit the kernel version on any Android device. You…

8 months ago

systemd-resolve command not found in Ubuntu Desktop

Use resolvectl status instead. It's like something deprecates and suddenly things get broken! In systemd…

1 year ago

How to exclude multiple directories with rsync?

Geeky question: This is what people and friends have tried: rsync -arv --exclude "/home/john/.ccache:/home/ben/build" /home/john…

1 year ago

How to resolve apt-get -f not working

You might encounter this error which appears to be very common on Debian based Distro's…

1 year ago

How to install Broadcom STA wireless drivers on Kali Linux

PS: This article is for only Kali Linux users, that too having a Broadcom Wireless…

1 year ago