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, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to