Re: setgid on directories by default?

From: Peter Matulis (petermatulis_at_yahoo.ca)
Date: 04/29/04


Date: Thu, 29 Apr 2004 10:53:58 -0400

On 29 Apr 2004 07:49:45 GMT, "Peter Strömberg" <wilfried@spamcop.net>
wrote:

>Peter Matulis <petermatulis@yahoo.ca> wrote in
>news:sp21901dangonde1cd7tifcocvg7s0r329@4ax.com:
>
>> From some tests I've done (on 3.4) a newly created file (or directory)
>> always takes on the group ownership of the parent directory no matter
>> what permissions are set for the parent. This is like setgid on
>> directories by default. Is there any way to undo this?
>
>That is how it is on bsd systems
>
>>From open(2) and mkdir(2):
>"When a new file is created it is given the group of the directory which
> contains it."
>"The directory's group ID is set to that of the parent directory in which
> it is created."

Thanks.



Relevant Pages

  • setgid on directories by default?
    ... always takes on the group ownership of the parent directory no matter what ... permissions are set for the parent. ... This is like setgid on directories by ...
    (comp.unix.bsd.openbsd.misc)
  • Re: setgid on directories by default?
    ... Peter Matulis wrote in ... > always takes on the group ownership of the parent directory no matter ... > what permissions are set for the parent. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: IIS, Win2003 and NTFS problem
    ... Assuming that you do have the file manipulation process running ... > zip it up and place it in his/her personal web directory (makes it ... > parent directory permissions, and they seem correct. ...
    (microsoft.public.inetserver.iis.security)
  • Re: xcacls
    ... Knock out all permissions at the parent directory and all ... Seize ownership of the parent directory and all subdirectories. ... the parent directory level, and turn on inheritance. ... This command assumes that the folder names are identical ...
    (microsoft.public.win2000.file_system)
  • Re: Create (touch) file
    ... I think lack of permissions would produce a different error. ... checking to make sure the parent directory exists though. ...
    (comp.sys.mac.programmer.help)