Primary group and parent dir

Tino Engel elrap at web.de
Wed Oct 31 19:39:55 PDT 2007


Probably the sticky bit on your parent directory is set. (someth. like 
dswxs-xs-x)
Am Mittwoch 31 Oktober 2007 05:15 schrieb Alesha Vlasov:
> Hi.
>
> Linux:
> $ id
> uid=42451(u42451) gid=155(clients) groups=155(clients), 42451(u42451)
>
> $ ls -la
> drwx--x---   7    u42451   www       512   29 oct 19:33 .
> drwxr-x--x   254  root     wheel     79872 29 oct 19:28 ..
> drwx---r-x   16   u42451   clients   1024  29 oct 18:34 http
>
> $ mkdir test
> $ ls -ld test
> drwxr-xr-x  2 u42451  clients  512 29 oct 19:39 test
>
> it means that dirs are always made with primary usergroup.
>
> FreeBSD:
> Everithing the same but,
> $ mkdir test
> $ ls -ld test
> drwxr-xr-x  2 u42451  www  512 29 oct 19:39 test it means the group is
> alway inherited from parent dir.
>
> Can I make this as in linux?
> Thanks.
>
> --
> BRGDS. Alesha Vlasov.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20071101/e2aac09c/attachment.pgp


More information about the freebsd-questions mailing list