LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 12-01-2007, 04:48 PM   #1
lyke
LQ Newbie
 
Registered: Oct 2007
Posts: 14

Rep: Reputation: 0
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
 
Old 12-02-2007, 10:11 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
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 ?
 
  


Reply

Tags
fstab, udev


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Treo 650 permissions udev? smOk3 Slackware 8 12-08-2007 08:57 PM
udev /dev/null permissions The_Outlander Slackware 2 08-29-2007 08:00 AM
/etc/udev/permissions.d on Slack ? Kocil Slackware 3 11-29-2005 02:57 AM
udev-054 user permissions henno Slackware 1 03-03-2005 06:19 AM
udev permissions.d not read jonman364 Linux - Software 1 02-21-2005 04:08 PM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration