From owner-freebsd-questions@FreeBSD.ORG Fri Sep 2 14:31:11 2011 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 9C8941065670 for ; Fri, 2 Sep 2011 14:31:11 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 5BC7A8FC0C for ; Fri, 2 Sep 2011 14:31:11 +0000 (UTC) Received: from r56.edvax.de (port-92-195-14-151.dynamic.qsc.de [92.195.14.151]) by mx01.qsc.de (Postfix) with ESMTP id 043DD3D492; Fri, 2 Sep 2011 16:31:08 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id p82EV89X002799; Fri, 2 Sep 2011 16:31:08 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 2 Sep 2011 16:31:08 +0200 From: Polytropon To: Michael M Message-Id: <20110902163108.be0e56b4.freebsd@edvax.de> In-Reply-To: References: <201109021202.p82C2NE4084388@mail.r-bonomi.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Mount a ufs partition writable by group wheel? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2011 14:31:11 -0000 On Fri, 2 Sep 2011 16:08:08 +0200, Michael M wrote: > Excuse my generic question, I should have asked: > > Can the group rw options for given partition destination be defined in fstab > upon mount? No. The access rights depend on the owner:group permissions of the mountpoint directory. The _act_ of mounting depends on the mounter's ownership of the corresponding device files. So in order to to only allow wheel group members to access a certain mount point for ug=rwx, the permissions of that mount point have to be set. This is done independently from what /etc/fstab is for (which controls the _act_ of mounting if all requirements - as mentioned above - are met). However, there _are_ options that can be included in fstab for applying a certain mask to files contained in a mounted directory, see -m and -M in "man mount_msdosfs" for example. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...