19 Dec
2006
19 Dec
'06
11:14
Greg Wallace wrote:
I would like to go through all files and subdirectories of a directory and set the group permissions equal to the owner permissions. Is there a command that will do this? This directory has thousands of files and hundreds of directories under it, so doing this manually isn't feasible.
find directory | while read f do setfacl -m `getfacl "$f" | grep user | sed s/user/group/` "$f" done Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org