Odd chmod problem...

From: Don Werve (donw@examen.com)
Date: Tue Jul 02 2002 - 12:28:43 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?

Reason this is important is that I'm setting up Samba to set sticky bits
on all directories created in a certain area (to keep group ownership of
files consistent), and it seems to be having the same problem that the
above 'chmod' command does -- namely, a 'chmod 2775' does the same thing
as a 'chmod 775'.

As a final bit, here's the line out of the mount output for this filesystem:

     /home on /dev/dsk/c2t4d0s1 \
     read/write/setuid/intr/largefiles/noatime/onerror=panic/dev=800111 \
     on Thu Jun 13 09:59:26 2002

Will summarize if asked. Thanks!

-- 
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