List Info

Thread: where are directory group permissions documented?




where are directory group permissions documented?
country flaguser name
United States
2007-06-07 16:33:25
What man page(s) discuss that when a file is created it
inherits the group 
ID of its directory (instead of the gid of the creating
process)?

Linux doesn't do that by default and calls it "BSD
semantics". Linux can 
enable that with S_ISGID bit.

Can it be disabled on a BSD system? In other words on
NetBSD, how to make 
it so new files are automatically created with the group of
creating 
process (instead of the group of the directory)? I am just
curious and I 
don't need this.

  Jeremy C. Reed

Re: where are directory group permissions documented?
country flaguser name
Sweden
2007-06-07 16:47:08
tor 2007-06-07 klockan 23.33 skrev Jeremy C. Reed:
> What man page(s) discuss that when a file is created it
inherits the group 
> ID of its directory (instead of the gid of the creating
process)?

open(2)

> Linux doesn't do that by default and calls it "BSD
semantics". Linux can 
> enable that with S_ISGID bit.
> 
> Can it be disabled on a BSD system? In other words on
NetBSD, how to make 
> it so new files are automatically created with the
group of creating 
> process (instead of the group of the directory)? I am
just curious and I 
> don't need this.

Don't seem to be a way of doing that. (by reading the
man-pages anyway)

	Johnny



Re: where are directory group permissions documented?
country flaguser name
United States
2007-06-07 16:45:55
On Thu, 7 Jun 2007, Jeremy C. Reed wrote:

> What man page(s) discuss that when a file is created it
inherits the group 
> ID of its directory (instead of the gid of the creating
process)?

I answer that myself. It is clearly documented in open(2)
which is linked 
from chmod(2).

Since it is not documented in same place, I assume disabling
it is not 
possible.

> Linux doesn't do that by default and calls it "BSD
semantics". Linux can 
> enable that with S_ISGID bit.
> 
> Can it be disabled on a BSD system? In other words on
NetBSD, how to make 
> it so new files are automatically created with the
group of creating 
> process (instead of the group of the directory)? I am
just curious and I 
> don't need this.

  Jeremy C. Reed

Re: where are directory group permissions documented?
country flaguser name
United States
2007-06-07 16:51:34
Hi, Jeremy--

On Jun 7, 2007, at 2:33 PM, Jeremy C. Reed wrote:
> What man page(s) discuss that when a file is created it
inherits  
> the group
> ID of its directory (instead of the gid of the creating
process)?

It probably should be documented in chmod(1), chmod(2),
and/or mount 
(8), if it isn't already.

> Linux doesn't do that by default and calls it "BSD
semantics".  
> Linux can
> enable that with S_ISGID bit.

Yep, that's right.

> Can it be disabled on a BSD system? In other words on
NetBSD, how  
> to make
> it so new files are automatically created with the
group of creating
> process (instead of the group of the directory)? I am
just curious  
> and I
> don't need this.

Does NetBSD's mount have the nosuid or suiddir options?

-- 
-Chuck


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )