Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2005 02:54:50 -0700
From:      Ben Jencks <ben@bjencks.net>
To:        conrads@cox.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64)
Message-ID:  <86ll40o55h.fsf@wagner.bjencks.net>
In-Reply-To: <XFMail.20050720190213.conrads@cox.net> (Conrad J. Sabatier's message of "Wed, 20 Jul 2005 19:02:13 -0500 (CDT)")
References:  <XFMail.20050720190213.conrads@cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Conrad J. Sabatier" <conrads@cox.net> writes:

> Can anyone shed some light on this for me?  This is really most
> mystifying!

The way I have it set up is to allow my user to mount the usbdisk
directly. This means the user has to own the mountpoint (probably best
to put it in his homedir), have rw perms on /dev/da0s1, and
vfs.usermount has to be set to 1. Then the user will be able to use
mount_msdosfs without special privileges to mount /dev/da0s1. No fstab
entry needed.

The hard part is giving the user rw perms on /dev/da0s1. You have to
create a devfs ruleset in /etc/devfs.rules. Then you have to activate it
with the rc.conf knob devfs_system_ruleset. See devfs.rules(5) and
/etc/defaults/devfs.rules.
- -- 
Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC33Dspt3yYclAKVsRAmUjAJoDf20daxKIGNwjnW7HcXXqbdfwcwCbB+8z
wPx8arIqB5Eu6M+B8lhi4Ag=
=Xy2D
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ll40o55h.fsf>