Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Ubuntu Help
Reload this Page Partial Root Privileges
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Ubuntu Help Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Reply
 
Thread Tools Display Modes
Old 06-15-2008   #1 (permalink)
kebbelj
Just Joined!
 
Join Date: Jan 2007
Location: Sebastian, Florida
Posts: 43
Partial Root Privileges

I want to give users the ability to Add/Remove software on a specific machine, but I do not want to add these users to the Sudoers list. How would I enable an ordinary user to install or delete software using just his account, but not have any other root privileges?

(Automatix asks for an administrator password and the Add/Remove menu item that appears in accounts with sudoer access does not appear in non-sudoer accounts.)
kebbelj is offline   Reply With Quote
Old 06-15-2008   #2 (permalink)
dandart
Just Joined!
 
Join Date: Aug 2005
Location: South West England
Posts: 27
Send a message via MSN to dandart
Set the last option in your sudoers to just the install programs: dpkg, apt-get, etc. Then they will not be able to sudo to do anything else
dandart is offline   Reply With Quote
Old 06-15-2008   #3 (permalink)
kebbelj
Just Joined!
 
Join Date: Jan 2007
Location: Sebastian, Florida
Posts: 43
Inverse of Original Question

Thanks, I will try your solution as soon as I am able to get to that machine.

A related question, actually the inverse of the original question--Is it possible to specify that a member of sudoers can NOT do certain things. For instance, be barred from shutting down parental controls (Dansguardian) but be able to do just about anthing else?
kebbelj is offline   Reply With Quote
Old 06-15-2008   #4 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,405
Yes ... but it is better to grant permission rather than deny. See the security info section of
Code:
man sudoers
Jonathan183 is offline   Reply With Quote
Old 06-15-2008   #5 (permalink)
kebbelj
Just Joined!
 
Join Date: Jan 2007
Location: Sebastian, Florida
Posts: 43
See Your Point

I was already working my way through the sudoers manual when this showed up and I jumped ahead to the Security section. I see your point. Thanks.
kebbelj is offline   Reply With Quote
Old 06-15-2008   #6 (permalink)
kebbelj
Just Joined!
 
Join Date: Jan 2007
Location: Sebastian, Florida
Posts: 43
Synaptic Not Enabled

I added this to the last line of /etc/sudoers with visudo ...

Code:
kebbelj ALL=/usr/bin/dpkg, usr/bin/automatix.py, /usr/bin/X11/apt-get, /usr/bin/apt-get, /usr/bin/gnome-app-install, /usr/bin/synaptic
This seems to have given me access. However, when I try to run synaptic, I get ...

Code:
FAILED TO RUN SYNAPTIC
The underlying authorization mechanism (sudo) does not allow you to run this program. Contact the system administrator.
I would really love to have synaptic enabled. Any reason it's not working? (I checked to see if there was a synaptic in /usr/bin/X11, but there wasn't one there.)
kebbelj is offline   Reply With Quote
Old 06-16-2008   #7 (permalink)
Jonathan183
Linux Engineer
 
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,405
Is synaptic in /usr/sbin ... thats where it looks to be in Mint ?
Jonathan183 is offline   Reply With Quote
Old 06-16-2008   #8 (permalink)
kebbelj
Just Joined!
 
Join Date: Jan 2007
Location: Sebastian, Florida
Posts: 43
That Was It, Thanks!

It was /usr/sbin

Thanks to you and everyone else who supplied guidance.
kebbelj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 06:49 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0