15
3
Is there a unix command to give the group the same permissions as the user currently has on a file-by-file basis recursively for a directory tree? I.e. if a file is user writeable it should become group writeable, otherwise it should not be group writeable and so on.
@jamessan, which directories are. – Mike Graham – 2011-04-06T14:32:32.750
@Mike, just because *nix allows you to treat pretty much everything as a file, doesn't mean that directories actually are files. Even if one were to concede that they are the same, there is a distinct functional difference between changing the permissions of all files in a directory tree and changing the permissions of all files & directories in a directory tree. – jamessan – 2011-04-06T17:41:15.217
Once again there is straightforward solution to my problem. Why am I not surprised? – rzetterberg – 2012-01-05T08:05:34.973
1That also changes the permissions of directories. The original question specified files. – jamessan – 2009-12-15T17:43:42.923