Question about the difference of with and without SGID on directory
Patrick Dung
patrick_dkt at yahoo.com.hk
Thu May 31 17:50:41 UTC 2007
Hi
I found Free/Net/OpenBSD semantic is different from Linux/Solaris.
Suppose there is a directory called 'directory,
With owner www, and group www and permission 0777.
Then I touch a file:
$ touch file
$ ls -la
total 4
drwxrwxrwx 2 www www 512 May 31 17:14 .
drwxrwxrwt 8 root wheel 512 May 31 17:14 ..
-rw-r--r-- 1 patrick www 0 May 31 17:14 file
^^^
The file created will have a group owner of the owner of the directory
not the creator.
So I have two questions here:
1. So is there a difference with SGID on directory?
2. Any idea about why it is different from SYSV (Linux/Solaris)?
Thanks
Patrick
____________________________________________________________________________________Ready for the edge of your seat?
Check out tonight's top picks on Yahoo! TV.
http://tv.yahoo.com/
More information about the freebsd-questions
mailing list