From owner-freebsd-questions@FreeBSD.ORG Fri Sep 2 11:38:58 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 1F4A0106564A for ; Fri, 2 Sep 2011 11:38:58 +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 D5EF38FC13 for ; Fri, 2 Sep 2011 11:38:57 +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 046503D362; Fri, 2 Sep 2011 13:38:56 +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 p82BcuQm002016; Fri, 2 Sep 2011 13:38:56 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 2 Sep 2011 13:38:56 +0200 From: Polytropon To: Michael M Message-Id: <20110902133856.3730fdd4.freebsd@edvax.de> In-Reply-To: References: 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 11:38:58 -0000 On Fri, 2 Sep 2011 13:01:58 +0200, Michael M wrote: > Is it possible to mount a ufs partition writable by group wheel? It is. :-) > How would > the fstab entry look? Maybe like this: # Device Mountpoint FStype Options Dump Pass # --------- ------------- --------- ---------- --------- /dev/da0 /mnt ufs rw 2 2 The mount point (directory /mnt in this example) has to be +w for wheel, e. g. # chown root:wheel /mnt # chmod u=rwx,g=rwx,o=rx /mnt # mount /mnt That should be _nearly_ the default (FreeBSD/x86 8.2-STABLE here): drwxr-xr-x 2 root wheel 512 Feb 18 2011 mnt/ ^ This is where you could use # chmod g+w /mnt to allow writes for members of the wheel group. You may apply further restrictions (e. g. -rx for others) if needed), and maybe "noauto" on the options field. For mounting in general: The user issuing the mount command has to have proper access to the device file (/dev/da0 in this example) _and_ the target directory. See "man mount" and "man fstab" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...