Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 10:19:51 -0700 (PDT)
From:      Patrick Dung <patrick_dkt@yahoo.com.hk>
To:        freebsd-questions@freebsd.org
Subject:   Question about the difference of with and without SGID on directory
Message-ID:  <200241.77528.qm@web54307.mail.re2.yahoo.com>

next in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200241.77528.qm>