From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 14:56:28 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C517216A46D for ; Wed, 31 Oct 2007 14:56:28 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.180]) by mx1.freebsd.org (Postfix) with ESMTP id 431D213C4B8 for ; Wed, 31 Oct 2007 14:56:27 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so56350ika for ; Wed, 31 Oct 2007 07:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=lascKzw/FIHIEDLJ0LlQMZZ9JH1nJSaWrVQu/WgR5A0=; b=qqXbvCnBc1T/Cp7nWvoHk+h6gzIsLCEWjB+r4ENsrz+yeAGbGClTQIynxmK7xy4ZfWvIvdeBFSmzZBZVoY799FRCNBURxfqiUQNu9NbT63wDes7+g+atyLh6Dc6DTnlg2RtP3r1L4/X+Bi3ff2yN0OUdKaisBXGN3jMO9IeC8YE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=X1nfK9Z4AlV1eOEvcX0KcsMni0Rk9Df2fNo67iVP3txiuy4t5dpk6HT64bPMAaiTdPQVegiiC8LcKHk+Q0kDYyUslfl5OA2HY3fTLfrQgrBdrxA7682RcTqeMlZxtSEnKf+ylQnUgAX8TmhTSNt0wqjfBPac83Lfs/cYqwLFzeQ= Received: by 10.142.114.15 with SMTP id m15mr2057922wfc.1193842572118; Wed, 31 Oct 2007 07:56:12 -0700 (PDT) Received: by 10.142.180.12 with HTTP; Wed, 31 Oct 2007 07:56:12 -0700 (PDT) Message-ID: Date: Wed, 31 Oct 2007 08:56:12 -0600 From: James To: "Alexey Vlasov" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Primary group and parent dir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 14:56:28 -0000 On 10/31/07, James wrote: > > > > On 10/30/07, Alexey Vlasov 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.