System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

setacl for recuursive directory & files to particular user

SOLVED
Go to solution
HP-UX_Ali
Regular Advisor

setacl for recuursive directory & files to particular user

Hi ALL,

Required your assistant to setacl for particular user for recurssive directory & files.

eg:
/app/xxx/abc/efg

where xxx contains many directories and i have to assign r-x previlage to particular users.


please confirm ASAP.

Thanks
4 REPLIES
Dennis Handly
Acclaimed Contributor

Re: setacl for recuursive directory & files to particular user

If you know how to do it for one file, you can use "find ... -exec" to do it for many.
HP-UX_Ali
Regular Advisor

Re: setacl for recuursive directory & files to particular user

Can you give the exact command.
for 1 file its setacl -m user:test:r-x filename


regards
Dennis Handly
Acclaimed Contributor
Solution

Re: setacl for recuursive directory & files to particular user

find /app/xxx/abc/efg -exec setacl -m user:test:r-x {} +

You might want to insert "echo" before the setacl to make sure it's doing the right files.
HP-UX_Ali
Regular Advisor

Re: setacl for recuursive directory & files to particular user

i have got the solution & hence closing the thread