[kde-linux] Unmounting USB Key (not root)

SnapafunFrank Frank at snapafun.co.nz
Wed Sep 28 03:02:36 UTC 2005


James White wrote:

>I feel like I'm getting "close" to understanding this udev thing... but not 
>quite there yet.
>
>I am setting up machines for clients who will have no root access.  They will 
>be using USB-Keys - and I cannot identify them in advance by serial number so 
>I have entered this in my 10-udev.rules:
>
>KERNEL="sd[a-z][0-9]*", NAME="WonderKey%n", OWNER="root", GROUP="usb", 
>MODE="0777"
>
>As expected, I plug in a key and it shows up just nicely in the "Storage 
>Media" applet.  Of course it did this BEFORE my rule too, but now it's called 
>a "WonderKey".  (The name WonderKey was just so I knew that my rule was 
>actually being executed.)
>
>But even with my rule set to give GROUP-"usb" rwx permissions, members of that 
>group cannot unmount the key.  The error says:
>
>umount:  only root can unmount /dev/WonderKey1 
>from /media/JAMES_KEY"
>
>Which is exactly the situation that caused me to write my rule in the first 
>place.
>
>So, WHERE should I be setting the "unmount" permission for my devices?
>
>I bet I am missing something pretty darned basic here - but I've been wracking 
>my brain for days on this. 
>
>  
>
>------------------------------------------------------------------------
>
>___________________________________________________
>This message is from the kde-linux mailing list.
>Account management:  https://mail.kde.org/mailman/listinfo/kde-linux.
>Archives: http://lists.kde.org/.
>More info: http://www.kde.org/faq.html.
>
I left this alone for a while hoping that someone more knowledgeable 
than I would answer.

But, strictly as a newbie, I still think that " OWNER="root" " says it 
all ????

-- 
Newbie Seeking USER_FUNCTIONALITY always!

Regards

SnapafunFrank

Big or small, a challenge requires the same commitment to resolve.
Registered Linux User # 324213  [ http://counter.li.org/ ]




More information about the kde-linux mailing list