[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir() and group id
From: |
Paul Jarc |
Subject: |
Re: mkdir() and group id |
Date: |
Fri, 26 Apr 2002 13:54:03 -0400 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) |
Oystein Viggen <oysteivi@tihlde.org> wrote:
> 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.
False.
$ mkdir foo
$ ls -ld foo
drwxr-xr-x 2 prj default 48 Apr 26 13:46 foo
$ chown :prj foo
$ chmod g+s foo
$ ls -ld foo
drwxr-sr-x 2 prj prj 48 Apr 26 13:46 foo
$ mkdir foo/bar
$ ls -ld foo/bar
drwxr-sr-x 2 prj prj 48 Apr 26 13:46 foo/bar
$ mkdir foo/bar/baz
$ ls -ld foo/bar/baz
drwxr-sr-x 2 prj prj 48 Apr 26 13:46 foo/bar/baz
$ mkdir foo/bar/baz/quux
$ ls -ld foo/bar/baz/quux
drwxr-sr-x 2 prj prj 48 Apr 26 13:49 foo/bar/baz/quux
Tested on Linux and Solaris.
paul
- Re: mkdir() and group id, (continued)
- Re: mkdir() and group id, Marcus Brinkmann, 2002/04/25
- 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 <=
- 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, 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