Date: Wed, 31 Oct 2007 08:56:12 -0600 From: James <oscartheduck@gmail.com> To: "Alexey Vlasov" <renton@1gb.ru> Cc: freebsd-questions@freebsd.org Subject: Re: Primary group and parent dir Message-ID: <d59e90ab0710310756n7c2c643k8e6087cead573180@mail.gmail.com> In-Reply-To: <d59e90ab0710310721i193aceb3tb17ef4a354822574@mail.gmail.com> References: <AAB4F7E13135@mail-s20-aux1.in-solve.hidden> <d59e90ab0710310721i193aceb3tb17ef4a354822574@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/31/07, James <oscartheduck@gmail.com> wrote: > > > > On 10/30/07, Alexey Vlasov <renton@1gb.ru> wrote: > > > > 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@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > > > I'd never noticed this before; does BSD *always* inherit its group > permission from the parent directory? It looks like that. > > I'd imagine there's a way to change this somewhere, but it would involve a > kernel patch or something. Inheritance of permissions are pretty low level. > > James > Okay, more research is leading me to believe it's actually a file system issue. The BSD file system works one way, other file systems work differently. http://www.webservertalk.com/archive291-2006-3-1429958.html Try creating a partition with ext3 on it and creating a few folders in there. You could even format a USB drive or something.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d59e90ab0710310756n7c2c643k8e6087cead573180>