LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   udev permissions problems (http://www.linuxquestions.org/questions/linux-hardware-18/udev-permissions-problems-603805/)

lyke 12-01-2007 04:48 PM

udev permissions problems
 
This seems like more of a hardware problem than software, but I could be wrong

So my USB devices work fine - mount, unmount, eject, all of that, but to make things easier for myself, I wrote some udev rules and fstab entries for my iPod and usb flashkey - I thought that this would make Amarok a little bit easier to use (no separate umount and then eject after syncing).

The problem is that I can mount my iPod/flashkey as myself, but have to umount and eject them as superuser

here are the udev rules:

BUS=="usb", SYSFS{serial}=="****************", KERNEL=="sd?2", GROUP="users", OWNER="kyle", SYMLINK=="ipod"

BUS=="usb", SYSFS{serial}=="****************", KERNEL=="sd?1", GROUP="users", OWNER="kyle", SYMLINK=="flashkey"

*** I'm not sure if showing the serial numbers is a security issue, but a little but of paranoia is healthy

here are the fstab entries:

/dev/ipod /media/ipod auto users,noauto,rw,defaults 0 0
/dev/flashkey /media/flashkey auto users,noauto,rw,defaults 0 0

here's the error I get when I try to eject as kyle (not root)

umount: /dev/sda1: not mounted
umount: /media/flashkey: must be superuser to umount
umount: /dev/sda1: not mounted
umount: /media/flashkey: must be superuser to umount
eject: unmount of `/media/flashkey' failed

I'm running Slackware 12.0
Kernel 2.6.21.5-smp (optimized)

Thanks in advance

tredegar 12-02-2007 10:11 AM

1] Try changing users in your fstab to read user
[man fstab ;)]

2] Do you have a group users ? Are you a member of that group ?


All times are GMT -5. The time now is 09:27 AM.