Permissions for Zip and Floppy drives?
- From: Lee Ayrton <layrton@xxxxxxxxx>
- Date: Wed, 28 Feb 2007 15:59:26 -0500
I want to be able to mount and unmount my Zip100 and floppy media as an ordinary user from the desktop.
Store-bought SUSE 10.1, Compaq AP550 (i386), internal SCSI HD, external SCSI Zip100 drive, internal floppy. Novice skill set (as in "enough to be dangerous but not useful").
Cannot mount or unmount floppy or Zip as an ordinary user from desktop, I'm asking about both problems here as I suspect that they are related. Icons were placed on the desktop for each device by the install program, but the icons seem unrelated to the devices or the file systems. The install wizard had listed the zip as /dev/sdb4 in fstab, however, the ID switch on the drive itself allows only "5" and "6", currently set to 5 and on boot it IDs on screen as device 5. Editing the fstab entry to /dev/sdb5 resulted in making the drive available to root's desktop, but not to ordinary users.
The Zip does auto mount for ordinary user when inserted, but there's no unmount or eject control. A separate "ZIP100" icon does appear on the desktop for root but not for users. However, root "does not have the permissions necessary to change the group of "ZIP100"." Harumpf.
Following is /etc/fstab:
/dev/sda6 / reiserfs acl,user_xattr 1 1
/dev/sda7 /home reiserfs acl,user_xattr 1 2
/dev/sda1 /windows/C vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sda5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sdb5 /media/zip auto noauto,user 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
Browsing _man mount_ I see that "users" is a permissions option. Should I substitute "users" for "user" in the zip and floppy entries? There are two users.
Browsing /media I see that there are three entries: /ZIP100 /floppy and /zip. Should ZIP100 appear in fstab in place of zip?
With the Zip drive mounted, issuing _mount_ without arguments I get:
(none):~ # mount
/dev/sda6 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda7 on /home type reiserfs (rw,acl,user_xattr)
/dev/sda1 on /windows/C type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf 8=true)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sdb4 on /media/ZIP100 type vfat (rw,noexec,nosuid,nodev,flush,shortname=win nt,utf8,uid=1000)
# umount /media/ZIP100 successfuly unmounts and ejects the zip. But again I see that the Zip drive is mounted as /dev/sdb4, not sdb5. I don't understand why, and I can't determine if this is related to the permissions issue.
Manually mounting the floppy as root and then asking for the mtab listing:
(none):~ # mount /media/floppy
(none):~ # mount
/dev/sda6 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda7 on /home type reiserfs (rw,acl,user_xattr)
/dev/sda1 on /windows/C type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/fd0 on /media/floppy type vfat (rw,noexec,nosuid,nodev,sync)
Makes the floppy available to the ordinary user (and changes the desktop icon), but the user cannot unmount the disk.
The only other bit of information I can find is /etc/wmmount which seems to be where the useless icons are coming from:
#usagedisplay=1
#mountpoint /windows/D
#name=WindowsD
#iconnumber=3
#usagedisplay=1
mountpoint /media/cdrom
name=Cdrom# wmmount - The WindowMaker universal mount point
#
# 17/06/99 Release 1.0 beta2
# Copyright (C) 1998 Sam Hawker <shawkie@xxxxxxxxxxxxx>
# This software comes with ABSOLUTELY NO WARRANTY
# This software is free software, and you are welcome to redistribute it
# under certain conditions
# See the README file for a more complete notice.
# This configuration file to be saved as
# /usr/X11R6/lib/X11/wmmount/system.wmmount or as ~/.wmmount.
# Commands must appear (without a '#') at the beginning of the line.
# Tell wmmount how to mount and unmount devices.
# '%m' will be replaced with the mountpoint.
# '%n' will be replaced with the name of the mountpoint.
# '%%' will be replaced with '%'.
# Commands are executed directly (not by a shell) for speed.
# These entries may be ommitted (defaults in wmmount.c).
#mountcmd=/bin/mount %m
#umountcmd=/bin/umount %m
# Tell wmmount what to do when you double-click on the information box.
# This entry may be ommitted.
#opencmd=/usr/X11R6/bin/nxterm -T '%n - %m' -e mc %m
#opencmd=kfmclient exec %m
# Choose fonts for the information box.
# These entries may be ommitted.
#namefont=-*-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
#usagefont=-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*
# List all the icons you want to use.
# The first icon specified gets iconnumber 0.
# Ensure all icons exist and are accessible.
# At least one icon must be specified.
icon /usr/X11R6/lib/X11/wmmount/cdrom.xpm
icon /usr/X11R6/lib/X11/wmmount/floppy.xpm
icon /usr/X11R6/lib/X11/wmmount/zip.xpm
icon /usr/X11R6/lib/X11/wmmount/harddisk.xpm
# Give details of all mountpoints.
#mountpoint /
#name=Linux
#iconnumber=3
#usagedisplay=1
#mountcmd=/bin/mount %m
#umountcmd=/bin/umount %m
#opencmd=kfmclient exec %m
# name, iconnumber and usagedisplay are required.
# usagedisplay can be 0 (none), 1 (available), 2 (used) or 3 (percentage used).
# mountcmd, umountcmd and opencmd are optional and allow the defaults to be
# overridden for particular mountpoints.
mountpoint /
name=Linux
iconnumber=3
usagedisplay=1
#mountpoint /home
#name=Home
#iconnumber=3
#usagedisplay=1
#mountpoint /windows/C
#name=WindowsC
#iconnumber=3
iconnumber=0
usagedisplay=0
mountpoint /media/floppy
name=Floppy
iconnumber=1
usagedisplay=1
#mountpoint /media/zip
#name=Zip
#iconnumber=2
#usagedisplay=1
Help me please?
--
"We began to realize, as we plowed on with the destruction of New Jersey,
that the extent of our American lunatic fringe had been underestimated."
Orson Wells on the reaction to the _War Of The Worlds_ broadcast.
.
- Prev by Date: Re: Open SuSE 10.2: Installing on ext. USB2 drive
- Next by Date: Re: Open SuSE 10.2: Installing on ext. USB2 drive
- Previous by thread: kernel panic and fs not recognized.
- Index(es):
Relevant Pages
|