I tried to let my user to mount floppy however it doesnt work...see below: %ls -al /dev/fd0 crw-rw-rw- 1 root operator 0, 98 Jun 30 18:22 /dev/fd0 %ls -al /mnt total 4 drwxrwxrwx 2 root wheel 512 May 1 2005 . drwxr-xr-x 20 root wheel 512 Jun 30 18:21 .. %mount /dev/fd0 /mnt mount: /dev/fd0: Operation not permitted %sysctl -a | grep vfs.usermount vfs.usermount: 1 %uname -a FreeBSD perpetual.my.domain 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jun 23 20:07:07 EEST 2006 yurtesen@perpetual.my.domain:/usr/obj/usr/src/sys/PERPETUAL i386 % The same problem exists for dos partitions etc. am I missing something here? Thanks, Evren
On Fri, June 30, 2006 9:17 am, Evren Yurtesen wrote:> I tried to let my user to mount floppy however it doesnt work...see > below: > > %ls -al /dev/fd0 > crw-rw-rw- 1 root operator 0, 98 Jun 30 18:22 /dev/fd0 %ls -al > /mnt > total 4 drwxrwxrwx 2 root wheel 512 May 1 2005 . drwxr-xr-x 20 > root wheel 512 Jun 30 18:21 .. %mount /dev/fd0 /mnt > mount: /dev/fd0: Operation not permitted > %sysctl -a | grep vfs.usermount > vfs.usermount: 1 > %uname -a > FreeBSD perpetual.my.domain 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jun > 23 > 20:07:07 EEST 2006 > yurtesen@perpetual.my.domain:/usr/obj/usr/src/sys/PERPETUAL i386 > %Please see the FAQ entry for this: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT You're missing the last bit. :) ---- Freddie Cash, LPCI-1 CCNT CCLP Helpdesk / Network Support Tech. School District 73 (250) 377-HELP [377-4357] fcash-ml@sd73.bc.ca
On Friday 30 June 2006 18:17, Evren Yurtesen wrote:> I tried to let my user to mount floppy however it doesnt work...see > below: > > %ls -al /dev/fd0 > crw-rw-rw- 1 root operator 0, 98 Jun 30 18:22 /dev/fd0 > %ls -al /mnt > total 4 > drwxrwxrwx 2 root wheel 512 May 1 2005 . > drwxr-xr-x 20 root wheel 512 Jun 30 18:21 .. > %mount /dev/fd0 /mnt > mount: /dev/fd0: Operation not permitted > %sysctl -a | grep vfs.usermount > vfs.usermount: 1 > %uname -a > FreeBSD perpetual.my.domain 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jun > 23 20:07:07 EEST 2006 > yurtesen@perpetual.my.domain:/usr/obj/usr/src/sys/PERPETUAL i386 > % > > > The same problem exists for dos partitions etc. am I missing > something here?My first guess is that you don't have msdosfs loaded. You need msdosfs either built into your kernel or loaded as a module before you can mount msdos filesystems. Mount will try to load the module if it's not available and will fail doing that with "Operation not permitted" when not run as root. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060630/2bcc146c/attachment.pgp
Joseph Koshy wrote:>> I have vfs.usermount=1 and 666 mode on /dev/fd0 >> What am I missing? :) Can you tell the exact point? > > Having the user in the 'operator' group and keeping > the matching ownership for the device name in /dev. >The URL below says: http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT For example, to allow users to mount the first floppy drive, use: # chmod 666 /dev/fd0 The /dev/fd0 mode is 666 so there shouldnt be any problems about which group the user is in. However Freddie Cash seems to be right. I now tried to mount to a directory that I own and it worked like a charm! :) Thanks! Evren
Evren Yurtesen wrote:> I tried to let my user to mount floppy however it doesnt work...see > below: > > %ls -al /dev/fd0 > crw-rw-rw- 1 root operator 0, 98 Jun 30 18:22 /dev/fd0 > %ls -al /mnt > total 4 > drwxrwxrwx 2 root wheel 512 May 1 2005 . > drwxr-xr-x 20 root wheel 512 Jun 30 18:21 .. > %mount /dev/fd0 /mnt > mount: /dev/fd0: Operation not permitted > %sysctl -a | grep vfs.usermount > vfs.usermount: 1 > %uname -a > FreeBSD perpetual.my.domain 6.1-STABLE FreeBSD 6.1-STABLE #0: Fri Jun > 23 20:07:07 EEST 2006 > yurtesen@perpetual.my.domain:/usr/obj/usr/src/sys/PERPETUAL i386 > % > > > The same problem exists for dos partitions etc. am I missing something > here? > > Thanks, > Evren > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >Well, the mount point has to be "owned" and have suitable permissions for mounting. For example, to mount my DVD drive while NOT logged on as root, I have a mounting point: $HOME/cdrom in my home directory and an appropriate entry in my /etc/fstabs. jmc