in reply to Re: Re: chmod 775 on all files
in thread chmod 775 on all files

Whether or not it's filtered by the current umask setting depends on the implementation of chmod. It certainly doesn't look at umask on the Redhat Linux I just tried it on.

It does, however, pay attention to umask if I don't put a modifier before the +.

A few years ago, during the PPT project, I implemented chmod in Perl. I looked at 5 different implementations (HP-UX, SunOS, Solaris, OpenBSD and GNU), and none of them behaved the same as any other implementation. None of the implementations acted as documented either. Of course, they all did the same for simple things, but they started deviating when giving more estoric parameters. Quick, what does your chmod do when doing:

chmod =,o+s file_or_directory

Abigail