Question on sudoers syntax

Bliss, Aaron ABliss at preferredcare.org
Tue May 2 15:28:40 UTC 2006


Nick,
Thanks for the tip, however correct me if I'm wrong, but acl support
wasn't added to ext3 partitions until the 2.6 kernel; if this is the
case, I believe I'm out of luck, as the box in questions is running
redhat es 3; any other ideas?

Aaron 

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Lunt, Nick
Sent: Tuesday, May 02, 2006 9:51 AM
To: General Red Hat Linux discussion list
Subject: RE: Question on sudoers syntax

Hi Aaron,

> -----Original Message-----
> From: Bliss, Aaron [mailto:ABliss at preferredcare.org]
> 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 at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


Confidentiality Notice:
The information contained in this electronic message is intended for the exclusive use of the individual or entity named above and may contain privileged or confidential information.  If the reader of this message is not the intended recipient or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that dissemination, distribution or copying of this information is prohibited.  If you have received this communication in error, please notify the sender immediately by telephone and destroy the copies you received.





More information about the redhat-list mailing list