From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 14 14:53:21 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F404106566C for ; Thu, 14 Jun 2012 14:53:21 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id D58178FC0C for ; Thu, 14 Jun 2012 14:53:20 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q5EErD7P078599 for ; Thu, 14 Jun 2012 16:53:13 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q5EErD8S078596 for ; Thu, 14 Jun 2012 16:53:13 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 14 Jun 2012 16:53:13 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Thu, 14 Jun 2012 16:53:13 +0200 (CEST) Subject: groups and directories X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 14:53:21 -0000 assume we have timesharing system and multiple users. everyone have his/her home directory and here - the access right and ownership is simple. assume we need two shared directories - a and b directory a must be for user1,user2 and user3, directory b for user3,user4 and user5. things are simple - i create groups a and b, and add user1,2,3 to group a, and user3,4,5 to group b. when any of them create file in those directories, group is automatically added. setting umask to 007 allows anyone else from group to read and modify those files. but when user1 create file first at home directory and then move it to directory a, it still is in group user1. is it possible to make automatic chgrp anyway? or just completely different solution. I don't mean samba/ftp/nfs but directly accessing files by users working on the same machine.