RFC: Adding a ``user'' mount option
Jilles Tjoelker
jilles at stack.nl
Thu Apr 6 12:28:01 UTC 2006
On Tue, Apr 04, 2006 at 01:45:47PM +0200, Stefan Sperling wrote:
> Why do GNOME/KDE rely on /etc/fstab on FreeBSD?
> What are admins supposed to do on systems with more than, say, a hundred
> users. Having to add a line to /etc/fstab for every user is of course
> scriptable, but that does not make it less insane.
> As far as I got it, the current design boils down to the user creating
> a mount point, and then mounting the media "manually", e.g.
> mount /dev/cd0 ~/cdrom. Granted the admin has set vfs.usermount to 1,
> of course. I don't really think that user mount has been designed
> with /etc/fstab in mind.
Consider chown(8)ing the mount points to the current user on login (and
root on logout) (using DisplayManager._0.startup and
DisplayManager._0.reset or similar). I do this on a few multiuser boxes
(at most 5 users per box though) and all users can use the same
/etc/fstab lines. The mount will only work for the locally logged in
user, which may be considered a bug or a feature ;-)
--
Jilles Tjoelker
More information about the freebsd-hackers
mailing list