Paul Eggert <[EMAIL PROTECTED]> wrote: > Jim Meyering <[EMAIL PROTECTED]> writes: > >> Or maybe the documentation should simply admit that when using -d, certain >> directory attributes (e.g., for ACLs, too) may be inherited. One argument >> in favor of this approach is that Solaris 9's /usr/sbin/install also >> works this way. > > But when I tried Solaris 9's /usr/sbin/install, the setgid bit was not > inherited:
Not on the final directory component. But on any others, it is. > $ ls -ld . > drwxrwsr-x 2 eggert eggert 512 Dec 13 11:46 . > $ /usr/sbin/install -d -m 0755 foo > directory foo created > 263-pete $ ls -ld foo > drwxr-xr-x 2 eggert eggert 512 Dec 16 16:31 foo > > Perhaps you were using /usr/ucb/install? That does behave like coreutils > install: No. To demonstrate this, you have to create a nontrivial hierarchy: $ uname -r 5.9 $ mkdir y $ cd y $ chmod g+ws . $ /usr/sbin/install -d -m 0755 a/b directory a/b created $ ls -dgo a a/b drwxr-sr-x 3 175 Dec 16 23:45 a/ drwxr-xr-x 2 117 Dec 16 23:45 a/b/ $ But your point is valid. Changing the permissions on the final component does make more sense. You're welcome to do that. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]