Floppy disk access as a regular user?
Jerry Feldman
gaf at blu.org
Thu Nov 18 20:48:55 EST 1999
First, set the permissions on /dev/fd0 to 0666:
brw-rw-rw- 1 root disk 2, 0 Jul 22 19:04 /dev/fd0
Now, any user can read from and write to the floppy disk using the mtools
commands:
gaf at gaf:~ > mcopy foo.c a:
gaf at gaf:~ > mdir a:
Volume in drive A has no label
Volume Serial Number is 73D1-6920
Directory for A:/
foo c 130 11-18-1999 20:42
1 file 130 bytes
1 457 152 bytes free
gaf at gaf:~ > tar cvf /dev/fd0 foo.c
foo.c
One thing you cannot do is to mount the device. Only root can mount the
device.
You can format the floppy: mformat a:
With mtools, a: is /dev/fd0.
"Kevin M. Gleason" wrote:
> Can anyone give me explicit steps to give users access to the floppy
> drive. I'm running Red Hat 6.1 and tried assigning each user (Guest
> user) to group Floppy but that doesn't do it.
> Thanks for your help!
--
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list