Re: /tmp sticky bit differences on FreeBSD 8

2009-09-16 Thread Leandro Quibem Magnabosco

   Artis Caune escreveu:

2009/9/16 Matthew Seaman [1]:


On FreeBSD 6,7 files are created with wheel group, but on 8 - with `gid`.


It seems that ZFS uses SysV group semantics (new files get the 1ary group of
the user unless the directory is set to SGID).  UFS filesystems on 8.x still
behave in the expected BSD way (new files get the same group as the
directory unless the user is not a member of that group, when they get the
users' 1ary group).

There's a thread 'ZFS Group ownership'  on this topic in freebsd-hack...@...
at the moment.



hmm, I use ZFS on FreeBSD 7, but still get wheel group and not egid.

   Maybe you did a chmod g+s dir...
   Check that, mybe it has something to do to what's happening to
   you.
   Otherwise, it might be something implemented only on v7.
   Leandro Magnabosco.

References

   1. mailto:m.sea...@infracaninophile.co.uk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: /tmp sticky bit differences on FreeBSD 8

2009-09-16 Thread Artis Caune
2009/9/16 Matthew Seaman :
>> On FreeBSD 6,7 files are created with wheel group, but on 8 - with `gid`.
>
> It seems that ZFS uses SysV group semantics (new files get the 1ary group of
> the user unless the directory is set to SGID).  UFS filesystems on 8.x still
> behave in the expected BSD way (new files get the same group as the
> directory unless the user is not a member of that group, when they get the
> users' 1ary group).
>
> There's a thread 'ZFS Group ownership'  on this topic in freebsd-hack...@...
> at the moment.
>

hmm, I use ZFS on FreeBSD 7, but still get wheel group and not egid.




-- 
Artis Caune

Everything should be made as simple as possible, but not simpler.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: /tmp sticky bit differences on FreeBSD 8

2009-09-16 Thread Matthew Seaman

Matthew Seaman wrote:


still behave in the expected BSD way (new files get the same group as the
directory unless the user is not a member of that group, when they get the
users' 1ary group).


Errr... Correction. New files get the same group as the directory.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: /tmp sticky bit differences on FreeBSD 8

2009-09-16 Thread Matthew Seaman

Artis Caune wrote:

Hi,

can someone point me to what has changed in file creation modes in
/tmp directory?

# FreeBSD 6, 7:
$ cd /tmp; id; touch testfile; mkdir testdir; ls -la
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
drwxr-xr-x   2 nobody  wheel   2 Sep 16 22:10 testdir
-rw-r--r--   1 nobody  wheel   0 Sep 16 22:10 testfile


# FreeBSD 8:
$ cd /tmp; id; touch test; ls -la test
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
drwxr-xr-x   2 nobody  nobody   2 Sep 16 22:12 testdir
-rw-r--r--   1 nobody  nobody   0 Sep 16 22:12 testfile


On FreeBSD 6,7 files are created with wheel group, but on 8 - with `gid`.


It seems that ZFS uses SysV group semantics (new files get the 1ary group of
the user unless the directory is set to SGID).  UFS filesystems on 8.x 
still behave in the expected BSD way (new files get the same group as the

directory unless the user is not a member of that group, when they get the
users' 1ary group).

There's a thread 'ZFS Group ownership'  on this topic in freebsd-hack...@...
at the moment.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature