LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2005, 12:05 PM   #1
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Rep: Reputation: 15
Question sudo and permissions limit


Hi,

I need to give access to two persons to be able to check the mail (postfix) and firewall performance, among other things.

My problem is that I need to block them from having access to all other homes directories where there is vital accountancy information among other things.

I know sudo can give access to root privileges without giving them the root's password but how can I limit the access?

thanks


Manrique
 
Old 05-03-2005, 02:38 PM   #2
kimx
Member
 
Registered: Dec 2004
Location: Denmark
Distribution: Yoper 2.2, Source Mage, Ubuntu 5.04, Slackware 10.1
Posts: 70

Rep: Reputation: 16
I don't know the best syntaks but I think that I know a thing that will work. Add the line
Code:
username localhost= NOPASSWD: /usr/bin/*, /bin/halt
when "username" is the user you want to give access, and localhost is the hostname of you box.

Then you can add what ever application that the user need to run separated by commas.
 
Old 05-05-2005, 07:51 PM   #3
mfeoli
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 92

Original Poster
Rep: Reputation: 15
thanks for your help,

now this would mainly give access to some programs for a particular user,

but can I really start and stop services with this?

does anyone sees another way to limit a user from been able to see the other people homes directory while in a sudo state or something similar?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 04:20 PM
sudo permissions problem cuto19 Ubuntu 8 12-01-2005 12:50 AM
Permissions in Debian - sudo works, su doesn't (etch/64Studio) greennick Linux - Software 0 09-12-2005 04:04 PM
sudo omry_y Debian 4 10-06-2004 10:01 AM
Quota issue, hard limit doesn't limit users Gratz Linux - Software 2 09-16-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration