Mount point's drwxrwxrwt permissions change when device is
mounted (5.4-STABLE, amd64)
Ben Jencks
ben at bjencks.net
Thu Jul 21 09:55:02 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
"Conrad J. Sabatier" <conrads at 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-----
More information about the freebsd-questions
mailing list