LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2004, 01:39 AM   #1
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
Sudo access to particular directories


Hi everybody,

I need to be able to lock down an sudo user so that they can only run particular commands within some directories they would otherwise only have read access to. eg:

cd /home/someotheruser
sudo rm A_Protected_File

... but only for the /home/someotheruser directory ... make sense?

Any ideas how this can be done? I'm having a hard time finding info on this, but maybe i'm not using the right search terms.

i'll make sweet sweet love, down by the fire, with anybody who can answer this one for me


[edit]
I've sort of worked it out, but still doesn't behave as expected. In my sudoers file I have something like this :

Cmnd_Alias CUSTOM = /usr/bin/nano /home/someotheruser/*

and i've attached this alias to a user. I can run the command I need if I provide the *full* path :

nano /home/someotheruser/A_Protected_File

however, if I 'cd' to the /home/someotheruser directory I don't have the privelages anymore as i'm no longer accessing the same relative path defined in my sudoers config.

ideas?

[/edit]




Last edited by angrybeaver; 09-23-2004 at 01:48 AM.
 
  


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
access denied to directories SeekAndDestroy Linux - Networking 7 11-11-2005 06:24 PM
Getting access to directories when extracting TAR djpalm64 Mandriva 2 01-28-2005 10:32 AM
Access Shared Directories gotmonkey Linux - Networking 5 04-15-2004 09:20 PM
Why root has no privilege to access some directories ymei Linux - General 4 10-08-2003 08:14 AM
Can't access windows directories through Nautilus mystictoaster Linux - Newbie 2 07-16-2003 05:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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