[kde-linux] Only root can unmount /dev/sda1

kevin.kempter at dataintellect.com kevin.kempter at dataintellect.com
Mon Sep 26 19:12:51 UTC 2005


On Monday 26 September 2005 12:42, James White wrote:
> This seems like I should have been able to figure it out on my own.  But a
> week later, I still haven't found any documentation on it and so I pass it
> to the List.
>
> My environment is KDE 3.4 on Gentoo Linux 2.6.12r10 and I am trying to
> build systems for end users in environments where there will be no root
> access available.
>
> On my KDE desktop, I have all of my Storage Media nicely lined up in my
> Storage Media Applett.  But when I choose to "Unmount" any of my usb keys
> or floppies or cd roms or DVDs, I am informed that "only root can unmourt".
> Sure... well it wasn't root who MOUNTED it... (grin).
>
> Now, I can get around this by adding the devices and their permissions in
> fstab - but that would totally bypass the entire concept of the
> kio_media_mounthelper.  It's automatic!  That's the POINT! ;-)
>
> So how do I set the permissions for mountable devices - in a dynamic
> environment - that don't actually exist until someone inserts them?
>
> There has to be a conf file somewhere right?


I had some issues with a USB device awhile back and Richard Crawford sent me 
the below description from the Fedora list.  It sounds like this is a udev 
issue, if so then the same convention may prove useful.



On Wednesday 05 January 2005 21:03, Kevin Kempter wrote:
> I have a new Handspring Treo and I'm running FC3. The device
> /dev/ttyUSB1 only appears when the unit is trying to sync and it appears
> new each time with only user readable perms (600 ?) . So the only way to
> sync is to change perms to 666 on /dev/ttyUSB1 each time I sync while
> the device is there.
>
> Any way to make the device permanent?

Kevin,

Try creating a file called /etc/udev/rules.d/10-visor.rules with this content:

BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", SYMLINK="pilot"

Seemed to do the trick for me.  If it doesn't work, you can also try adding a 
file called /etc/udev/permissions.d/10-visor.permissions with this content:

ttyUSB1:$local:uucp:0660

For more info, look at this site:

http://www.clasohm.com/blog/one-entry?entry_id=12096

which is where I found the solution that worked for me.

Hope that helps.



More information about the kde-linux mailing list