[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mount floppy

Tobias Ulbricht wrote:

doesn't quite solve Tom's problem.
see below.

On Tue, 18 Dec 2001, Tuukka Toivonen wrote:

On Tue, 18 Dec 2001, Tom Allison wrote:

I'm running into a rights issue with mounting floppies as a non-root user.

bash-2.05a$ ls -l /dev/fd0 && ls -l / | grep floppy && grep fd0 /etc/fstab
brwxrwx---    1 root     floppy     2,   0 Jul 23 21:46 /dev/fd0
drwxrwxr-x    2 root     root         4096 Nov 30  2000 floppy

/dev/fd0        /floppy         auto    user                    0      0


I am a member of group floppy.

With the rights shown as above, you have direct access rights to the floppy
device and you could use mtools (mcopy, mdir, etc.) to access the floppy.
However, mount does not care this, because in that case the reader will
always be kernel filesystem driver, which always has rights to any device.

What mount cares about, is if you have permission to _mount_ the floppy.
Mount permissions are described in /etc/fstab, so this is the file you

so that's exactly what he did in his fstab and what you suggested below.
Still if it doesn't work, what's wrong?

particular case, /etc/fstab should include line like

/dev/fd0                /floppy             auto    noauto,user    0 0

had the same problem, would be interested to know, but can't re-make my
problem now.
Thanks, tobias.

I got it!!!
I was being over-complicated about the whole thing:

I was trying to do:
mount -t vfat /dev/fd0 /floppy
when all I should be doing is:
mount /floppy
the entries in fstab default /floppy to /dev/fd0 (no need to specify), autodetect file system time ( no need for -t vfat) and user lets me (not root) do it. By specifying all this extra stuff -- I ended up violating the user trust and that's where I got my message.

A super simple solution to an aggrevating problem. One that I am not likely to forget soon.

Reply to: