HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
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

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
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