Operating System - HP-UX
1850101 Members
2213 Online
104050 Solutions
New Discussion

Re: setacl -R ... Doesn't work

 
GRANDIERE
Frequent Advisor

setacl -R ... Doesn't work

With the commande setacl i would like to use the -R option in order to put my acl on all subdirectories.

For exemple :
>>>setacl -mR user:gestjx:r-- p0
illegal entry specification, "R"

>>>setacl -R -m user:gestjx:r-- p0
setacl: illegal option -- R

This option doesn't work !

Thanks for help.

Dahu
5 REPLIES 5
Victor BERRIDGE
Honored Contributor

Re: setacl -R ... Doesn't work

Well
In the man there is no -R option...
So will have to figure out another way to achieve the task.

All the best
Victor
Pete Randall
Outstanding Contributor

Re: setacl -R ... Doesn't work

Use the find command:

find /starting_dir -type d -exec "setact -m user:gestjx:r-- p0"


Pete

Pete
GRANDIERE
Frequent Advisor

Re: setacl -R ... Doesn't work

Ok.

Thanks a lot.

by.
GRANDIERE
Frequent Advisor

Re: setacl -R ... Doesn't work

To close the thread.
Thanks.
Buz Dreyer
Occasional Contributor

Re: setacl -R ... Doesn't work

The man page for setacl does not refer to a "-R" option, but, the "help" message from setacl itself does mention a "-r".

Anyone know what "setacl -r ..." does?

# setacl -?
setacl: illegal option -- ?

usage: setacl [-rn]
[-m [[d[efault]:]u[ser]::operm | perm[,]]
[[d[efault]:]u[ser]:uid:operm | perm[,...]]
[[d[efault]:]g[roup]::operm | perm[,]]
[[d[efault]:]g[roup]:gid:operm | perm[,...]]
[[d[efault]:]c[lass]:operm | perm[,]]
[[d[efault]:]o[ther]:operm | perm]]
[-d [[d[efault]:]u[ser]:uid[,...]]
[[d[efault]:]g[roup]:gid[,...]]
[[d[efault]:]u[ser]::[,]]
[[d[efault]:]g[roup]::[,]]
[[d[efault]:]c[lass]:[,]]
[[d[efault]:]o[ther]:[,]]]
object(s)

or

setacl [-rn]
-s u[ser]::operm | perm[,]
[d[efault]:u[ser]::operm | perm[,]]
g[roup]::operm | perm[,]
[d[efault]:g[roup]::operm | perm[,]]
c[lass]:operm | perm[,]
[d[efault]:c[lass]:operm | perm[,]]
o[ther]:operm | perm[,]
[d[efault]:o[ther]:operm | perm[,]]
[[d[efault]:]u[ser]:uid:operm | perm[,...]]
[[d[efault]:]g[roup]:gid:operm | perm[,...]]
object(s)

or

setacl [-rn] -f file_name object(s)