Date: Fri, 2 Sep 2011 13:38:56 +0200 From: Polytropon <freebsd@edvax.de> To: Michael M <thecryof@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Mount a ufs partition writable by group wheel? Message-ID: <20110902133856.3730fdd4.freebsd@edvax.de> In-Reply-To: <CAKXnHW-CPXczQVvUoCEapN9%2Bqvj7swOZ%2Bk_EuYSgASGE7HA7=Q@mail.gmail.com> References: <CAKXnHW-CPXczQVvUoCEapN9%2Bqvj7swOZ%2Bk_EuYSgASGE7HA7=Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110902133856.3730fdd4.freebsd>