1832856 Members
3136 Online
110047 Solutions
New Discussion

Re: Sudo Access...

 
SOLVED
Go to solution
Mr.Right
Advisor

Sudo Access...

How can I give a normal user sudo access to /tcb/files/auth/r

So that he can read the files under /tcb/files/auth/r.

Please advice Urgent.
4 REPLIES 4
Autocross.US
Trusted Contributor
Solution

Re: Sudo Access...

The root entry is in that directory, just to advise...

I'd probably do this with an ACL instead of sudo:

setacl -m u:USERNAME:r-x /tcb/files/auth/r

This gives them read/execute on the directory. The files should already be world readable.
I drive way too fast to worry about calories.
Mr.Right
Advisor

Re: Sudo Access...

Autocross thanks for your advice..

Now once I have given access to the user , how can I remove the same...
Ivan Krastev
Honored Contributor

Re: Sudo Access...

Use:

user ALL= /bin/cat /tcb/files/auth/r*


regards,
ivan
Patrick Wallek
Honored Contributor

Re: Sudo Access...

Use 'setacl -d' to delete ACLs.

See 'man setacl' for details on usage.