From owner-freebsd-questions@FreeBSD.ORG Wed Oct 31 06:02:27 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 20D9216A481 for ; Wed, 31 Oct 2007 06:02:27 +0000 (UTC) (envelope-from renton@df.ru) Received: from cannabis.dataforce.net (cannabis.dataforce.net [195.42.160.18]) by mx1.freebsd.org (Postfix) with ESMTP id D67B813C4A3 for ; Wed, 31 Oct 2007 06:02:26 +0000 (UTC) (envelope-from renton@df.ru) Received: by cannabis.dataforce.net (Postfix, from userid 46126) id DE7BF17A74; Wed, 31 Oct 2007 08:15:01 +0300 (MSK) Date: Wed, 31 Oct 2007 08:15:01 +0300 From: Alesha Vlasov To: freebsd-questions@freebsd.org Message-ID: <20071031051501.GA13046@cannabis.dataforce.net> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: 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 06:02:27 -0000 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.