Mount a ufs partition writable by group wheel?

Polytropon freebsd at
Fri Sep 2 11:38:58 UTC 2011

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.

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list