Oliver Fromme wrote: > Michael Ekstrand <[EMAIL PROTECTED]> wrote: > > Rob <[EMAIL PROTECTED]> wrote: > > > Can anyone shed some light on what is happening here? > > > > AFAIK, only root can mount things under FreeBSD, period. I could be > > wrong on this... > > You are wrong. :-) > > > but I looked around a while ago for something to do > > the job of the Linux 'user' option, and found nothing. I kinda remember > > trying changing permissions too. > > > > If I'm wrong, I'd love to be corrected :-). > > You're welcome. :-) > > To enable user mounts, there are three conditions: > 1. sysctl vfs.usermount=1 > 2. The user must have read+write permission on the device > which is to be mounted. This is usually accomplished > by creating a special group for this device. > 3. The user must _own_ the mountpoint (r/w permission is > not sufficient). > > Of course, an alternative is to use sudo (ports/security/sudo) > or super (ports/security/super, which prefer). > > Best regards > Oliver >
hello, i must be missing something (and i'm quite convinced that it worked when i set it up initially) ... [mb-aw1n-bsd][mato][~] $ id uid=1001(mato) gid=1001(mato) groups=1001(mato), 0(wheel), 5(operator) [mb-aw1n-bsd][mato][~] $ sysctl vfs.usermount vfs.usermount: 1 [mb-aw1n-bsd][mato][~] $ ll mnt/ total 10 drwxr-x--- 2 mato mato 512 Dec 11 20:44 cdrom drwxr-x--- 2 mato mato 512 Dec 11 20:44 dos drwxr-x--- 2 mato mato 512 Dec 11 20:44 fat drwxr-x--- 2 mato mato 512 Dec 11 20:44 lin drwxr-x--- 2 mato mato 512 Dec 11 20:44 win [mb-aw1n-bsd][mato][~] $ grep "/mato" /etc/fstab /dev/acd0 /usr/home/mato/mnt/cdrom cd9660 ro,noauto 0 0 /dev/ad0s1 /usr/home/mato/mnt/dos msdosfs ro,noauto 0 0 /dev/ad0s5 /usr/home/mato/mnt/fat msdosfs ro,noatime,noauto,-Lsk_SK.ISO8859-2 0 0 /dev/ad0s6 /usr/home/mato/mnt/win ntfs ro,noauto 0 0 /dev/ad0s7 /usr/home/mato/mnt/lin ext2fs ro,noauto 0 0 [mb-aw1n-bsd][mato][~] $ ll /dev/ad0 crw-r----- 1 root operator 0, 96 Feb 8 18:27 /dev/ad0 [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/win/ mount_ntfs: /dev/ad0s6: Operation not permitted [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/lin/ mount_ext2fs: /dev/ad0s7: Operation not permitted [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/fat/ mount_msdosfs: cannot find or load "msdosfs_iconv" kernel module mount_msdosfs: msdosfs_iconv: Operation not permitted [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/dos/ [mb-aw1n-bsd][mato][~] $ any hint pls ?? cheers, martin _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
