LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to give root permission to normal user in RHEL... (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-give-root-permission-to-normal-user-in-rhel-4175436262/)

cgopisla@gmail.com 11-08-2012 08:58 AM

how to give root permission to normal user in RHEL...
 
Hi friends,
i want to know how can i give the root permission to the normal user?

shivaa 11-08-2012 10:29 AM

You can give full privileges to the user by allowing him to invoke "sudo". To achieve this, as a root do following:
Code:

root@example# visudo
This will open the sudoers file in the vi editor. Then to give the user full root privileges, add following line to the file:
Code:

<username> ALL=(ALL) ALL

teckk 11-08-2012 10:36 AM

http://linux.die.net/man/1/su
http://linux.die.net/man/8/sudo

su will swith user to root, you'll need roots password.
sudo will switch user with users pasword, require configuring the sudoers file.

Those are very basic questions. You might want to study Linux a little before you try to change something as root or you will have your box broken.

And if you are using RHEl then call Redhat since you are paying for their support.

http://linuxcommand.org/superman_pages.php/
http://tldp.org/
Also use the search function here.
Welcome to Linux and LQ.

unSpawn 11-08-2012 11:06 AM

Quote:

Originally Posted by cgopisla@gmail.com (Post 4825012)
i want to know how can i give the root permission to the normal user?

Can I ask why you would want to do that? I ask because most of the time it's either laziness or ignorance that leads to asking such questions and in both cases it tends to be a good starting point for fscking up Linux.


Quote:

Originally Posted by shivaa (Post 4825084)
Code:

<username> ALL=(ALL) ALL

While technically correct this is not how Sudo should be used as it is in violation of the "least privilege" principle. Best configure selected commands and arguments only.


Quote:

Originally Posted by teckk (Post 4825088)
And if you are using RHEl then call Redhat since you are paying for their support.

Please don't refer to RHEL support unnecessarily. This is basic OS knowledge and the nfo should be shared regardless of the distribution the OP uses.

TobiSGD 11-08-2012 11:40 AM

Quote:

Originally Posted by unSpawn (Post 4825112)
Please don't refer to RHEL support unnecessarily. This is basic OS knowledge and the nfo should be shared regardless of the distribution the OP uses.

In addition to that, it is possible to buy a RHEL subscription without support.


All times are GMT -5. The time now is 06:03 AM.