root like privileges

Posted on

root like privileges – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, , , , .

How do I create a new account (CentOS) and allow it root equivalent privileges?

I can add the user using the following command:

/usr/sbin/useradd test

I can change password using the following command:

passwd test

Solution :

You should use sudo for that. You can add the user to the sudoers file using visudo. Then the user can issue commands such as:

sudo some-command

which will allow them to have root privileges for the command.

You can change the UID in /etc/passwd to 0. But do realize you are defeating the purpose of having a root(superuser) account by doing this.

Leave a Reply

Your email address will not be published.