LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2012, 08:58 AM   #1
cgopisla@gmail.com
LQ Newbie
 
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
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?
 
Old 11-08-2012, 10:29 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
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
 
Old 11-08-2012, 10:36 AM   #3
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,851

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 11-08-2012, 11:06 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,335
Blog Entries: 55

Rep: Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535Reputation: 3535
Quote:
Originally Posted by cgopisla@gmail.com View Post
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 View Post
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 View Post
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.
 
Old 11-08-2012, 11:40 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Quote:
Originally Posted by unSpawn View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give root access to normal user for one day. unix_anand Linux - Security 3 10-14-2008 05:45 AM
how to give root privileges to normal user? caedo Linux - Newbie 11 08-28-2008 03:15 PM
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
Give Root Access To A Normal User waknauss Linux - Security 2 11-11-2004 09:00 AM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration