From owner-freebsd-questions@FreeBSD.ORG Wed Jan 27 18:33:34 2010 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 739A110656B5 for ; Wed, 27 Jan 2010 18:33:34 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from mail.locolomo.org (97.pool85-48-194.static.orange.es [85.48.194.97]) by mx1.freebsd.org (Postfix) with ESMTP id 2031E8FC1A for ; Wed, 27 Jan 2010 18:33:33 +0000 (UTC) Received: from beta.1-16-172-dyn.locolomo.org (unknown [172.16.1.127]) by mail.locolomo.org (Postfix) with ESMTPSA id 6A8BD1C1A67 for ; Wed, 27 Jan 2010 19:33:32 +0100 (CET) Message-ID: <4B6086FB.1010809@locolomo.org> Date: Wed, 27 Jan 2010 19:33:31 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20100127120511.A42534@starfire.mn.org> In-Reply-To: <20100127120511.A42534@starfire.mn.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: "adduser" and single-user groups 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, 27 Jan 2010 18:33:34 -0000 On 27/01/10 19.05, John wrote: > Could someone point me in the direction of enlightenment with regard > to the value add of the "group per user" approach that adduser > uses? Is that a FreeBSD thing, or a *BSD thing, or a unix-like-universe > thing, or what? Many systems do this AFAIK. IIRC, the point is that you can set umask to 007 or 002 and your home directory with owner you, and group you will remain private or at least only writable by you. The umasks 007 or 002 are useful if you have some shared folder where you have multiple users with write access, say: drwxrwxr-x root:users /home/share With umask 002, when files are created in this directory by another user in the users group, all users in this group can edit that file, no need to modify permissions. BR, Erik -- Erik Nørgaard Ph: +34.666334818/+34.915211157 http://www.locolomo.org