From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 14:22:13 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 DC94A16A418 for ; Wed, 31 Oct 2007 14:22:12 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: from rn-out-0102.google.com (rn-out-0910.google.com [64.233.170.191]) by mx1.freebsd.org (Postfix) with ESMTP id 8129913C4A6 for ; Wed, 31 Oct 2007 14:22:12 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: by rn-out-0102.google.com with SMTP id s42so43602rnb for ; Wed, 31 Oct 2007 07:21:50 -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=cGtrPRnPANtQkPSY9+78/1joCKoGFOi7BQEPH7eKZpA=; b=pktK4OyjQouSRZADpd6B2Eyn2TngpmzcLhp6oUptIhS9SnBiJVL2Rq2/3ZZ9edmLTRhgDHSxY8aKVWQu9cN94RJUYVDg//B7uyodQpad7hdCkfmdw3Q0KgBbbpvPs1rMd8LNvnuHk61dgW9kM+c6HfvnMtPi0gR0FDVG+JiVtEo= 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=FrXQjGrpzJxyvrAXIYewcbNK3ZM3sNc45yLO9J9pCe95XueB8/+NESTc2zERw8QTuJzy9Jbl+O7Sjm19Zb5HOJ8mueDug8K5NbcA0syu6ttZx87WDcK+bcrehVmn6qX4ajhL6CqUmVwrUcdzUzYmvapjNp22xCcuTKcDyffmPV4= Received: by 10.143.6.1 with SMTP id j1mr2039690wfi.1193840509201; Wed, 31 Oct 2007 07:21:49 -0700 (PDT) Received: by 10.142.180.12 with HTTP; Wed, 31 Oct 2007 07:21:49 -0700 (PDT) Message-ID: Date: Wed, 31 Oct 2007 08:21:49 -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:22:13 -0000 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