SUMMARY: Odd chmod problem...

From: Don Werve (donw@examen.com)
Date: Tue Jul 02 2002 - 13:15:57 EDT


> IIRC, 'chmod 2775 $foo' should set the following bits on a directory:
>
> drwxrwsr-x 2 luser users 512 Jul 2 09:18 foo
>
>However, when I run the command on our new fileserver (a Solaris 8
>box), I only get the following:
>
> drwxrwxr-x 2 luser users 512 Jul 2 09:18 foo
>
> After that, I have to manually 'chmod g+s' to get the sticky bit set.
> Is this normal behavior, or am I doing something wrong?
>

After being properly hit over the head with the man page of chmod(1),
the following passage came to light:

     Note that the setgid bit cannot be set (or cleared) in abso-
     lute mode; it must be set (or cleared) in symbolic mode
     using g+s (or g-s).

Thanks to Dan, Dave, and Brett for a quick and LARTful response.

-- 
Don Werve <donw@examen.com> (Unix System Administrator)
Yorn desh born, der ritt de gitt der gue,
Orn desh, dee born desh, de umn bork! bork! bork!
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:33 EDT