Question about the difference of with and without SGID on directory



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/
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: groups vs users
    ... , Dave Stratford wrote: ... owner would be the owner of the directory and NOT the primary ... The '2xxx' permission on a directory has been described upthread. ... The not-very-useful permissions of 2740 (SGID, but without the execute ...
    (comp.os.linux.setup)
  • Re: Object permissions
    ... you grant modify permission on the qryAttendanceActual query. ... trying to change the owner to a group or an individual, ... the query, they can actually open the query once the sql is set. ...
    (microsoft.public.access.security)
  • Re: Plutos OK
    ... copyright holder, to avoid a copyrighted item from becoming an orphan, thus ... making it impossible to legally get permission to copy. ... current owner is unknown. ... the permission of the copyright holder, ...
    (sci.space.history)
  • Re: Object permissions
    ... only the owner can set the RWOP property on a query. ... Once I removed that line from the sql, ... you grant modify permission on the qryAttendanceActual query. ...
    (microsoft.public.access.security)
  • Re: Object permissions
    ... objQDF.SQL= strSQLAttendance with the error about not having necessary ... implicit 'read and modify' permissions on the query. ... If I set up a new query with this user or their group as the owner, ... Especially when this code should work with only the modify permission ...
    (microsoft.public.access.security)