[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir() and group id
From: |
Thomas Bushnell, BSG |
Subject: |
Re: mkdir() and group id |
Date: |
26 Apr 2002 14:15:53 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
Oystein Viggen <oysteivi@tihlde.org> writes:
> The difference is that the SysV way won't work for more than one level
> of directories. Once you start making dirs within dirs[1], your sgid is
> not inherited, and group ownership falls back to your default group,
> instead of what you want.
I was just told that the setgid bit does get inherited on the new
directories.
> By the way, the scenario described by Thomas doesn't work for /tmp, as
> it gives users access to each others' temp files. (Provided, that is,
> that you use group 0 as "wheel", as is currently the case with several
> Linux distributions.)
That's incorrect. /tmp is owned by group zero, but none of the users
are in group zero, so their files don't inherit gid from the
directory. (You only inherit gid if you are a member of the group.)
- Re: mkdir() and group id, (continued)
- Re: mkdir() and group id, Roland McGrath, 2002/04/25
- Re: mkdir() and group id, Joshua Judson Rosen, 2002/04/26
- Re: mkdir() and group id, Marcus Brinkmann, 2002/04/26
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/26
- Re: mkdir() and group id, Paul Jarc, 2002/04/26
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/26
- Re: mkdir() and group id, Marcus Brinkmann, 2002/04/26
- Re: mkdir() and group id, Oystein Viggen, 2002/04/26
- Re: mkdir() and group id, Paul Jarc, 2002/04/26
- Re: mkdir() and group id,
Thomas Bushnell, BSG <=
- Re: mkdir() and group id, Paul Jarc, 2002/04/26
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/26
- Re: mkdir() and group id, Marcus Brinkmann, 2002/04/26
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/26
- Re: mkdir() and group id, Oystein Viggen, 2002/04/26
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/27
- Re: mkdir() and group id, Oystein Viggen, 2002/04/27
- Re: mkdir() and group id, Thomas Bushnell, BSG, 2002/04/27
- Re: mkdir() and group id, Paul Jarc, 2002/04/27
- Re: mkdir() and group id, Marcus Brinkmann, 2002/04/26