RE: Question on sudoers syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Aaron,

> -----Original Message-----
> From: Bliss, Aaron [mailto:ABliss@xxxxxxxxxxxxxxxxx]
> Sent: 02 May 2006 14:46
> To: General Red Hat Linux discussion list
> Subject: Question on sudoers syntax
> 
> 
> I'm sure you guys will know the answer to this straight away; is it
> possible to give a specific user access to a specific directory?  I
> would rather not change the directory permission or 
> user/group ownership
> of the directory (nor can I make the user a group member of 
> the current
> directory owner); it's not possible to predict the name of the files
> that the application creates, only where the files will be; my goal is
> to give a specific group of users the ability to do a 
> directory listing
> of a specific directory as well as permissions to more or cat any file
> in that directory (again, the file name is not know, only the
> directory); when I was presented with this, it sounded like something
> for sudoers; while I could put together a script that the 
> users can run,
> I was hoping that I could just put this into sudoers.  Any ideas?
> Thanks very much.

Ive never used sudo for this sort of thing. I'd use acl's.

Edit the fstab to add acl to the options for the filesystem in question.
Then mount -o remount it
Then if the user is named FRED run
setfacl -m u:fred:rx /some/dir


Good luck,
Nick .

Wesleyan Administration Services Ltd registered number 5188850 and Wesleyan Unit Trust Managers Ltd registered number 2114859 ("WUTM Ltd") are wholly owned subsidiary companies of Wesleyan Assurance Society, whose registered number is ZC145. WUTM Ltd is a member of IMA. For ISA/PEP/Unit Trusts Administration Centre: PO Box 9033, Chelmsford, SM99 2WQ Telephone: 0870 601 6129 Wesleyan Assurance Society and WUTM Ltd are authorised and regulated by the Financial Services Authority. Head Office, Colmore Circus, Birmingham B4 6AR. Telephone: 0121 200 3003 Fax 0121 200 2971. Website: www.wesleyan.co.uk Telephone calls may be recorded for monitoring and training purposes.

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the person or organisation to whom it is addressed. Its contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you are not the intended recipient, please contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, which could damage your own computer system. While every reasonable precaution to minimise this risk has been taken, we cannot accept liability for any damage that you sustain as a result of software viruses. You should carry out your own virus checking procedure before opening any attachment.

Delivered using mail2.wesleyan.co.uk


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux