LinuxQuestions.org
Help answer threads with 0 replies.
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 09-25-2009, 07:16 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
Providing access and permission to a user for installing RPM..


I have RHEL MAchine.One of the user wants to run few commands as root user.How Can I provide him few administrative commands access like
rpm -ivh
configure
make
make install

I read about /etc/sudoers.
What entry I need to make in there?
 
Old 09-25-2009, 08:34 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
You could use any of those commands to gain access to the shell so the effect of giving a user permission to install packages as root with rpm or make is to give them root access. You might as well just give them the root password and have done with it.
 
Old 09-26-2009, 09:14 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I need to provide the user for permission through /etc/sudoers.
How can I got for that?
 
Old 09-26-2009, 09:37 AM   #4
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Add this line:

username ALL=(ALL) ALL
 
Old 09-27-2009, 07:17 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

Rep: Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187Reputation: 1187
Quote:
Originally Posted by gregorian View Post
Add this line:

username ALL=(ALL) ALL
lol

It seems he missed the point in my post. I'm assuming yours was meant as a joke since it directly gives him access to all root functions.
 
  


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
permission denied access mplayer for user poswer Linux - Server 1 03-07-2009 06:14 PM
providing the root access to normal user raghuvamsi Linux - General 3 06-11-2008 12:38 AM
User access permission to /dev/sg* shreks Fedora 1 01-16-2006 05:54 AM
permission problems: access Win as user digitalhead Slackware 19 07-24-2005 04:26 AM
user specific file access permission synna Linux - Security 3 01-13-2004 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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