On Thursday 13 September 2001 03:54 pm, you wrote:
> Can someone tell me how to eject a Zip disk in KDE without umount-ing
> it as root from the command line? I have a user that is GUI dependent
> and would like to eject it by clicking something on the desktop or a
> menu.
>

I can do it via command line as root, but not as a user with the 
following command "eject /dev/zip" (/dev/zip is a symlink to /dev/sda4, 
which is my usb zip 100).

The same command does not work as a user, so it must be some sort of 
permissions problem.

Without screwing about too much, I added the following line to the 
/etc/sudoers file 
ALL     ALL = NOPASSWD: /usr/bin/eject 

now a user can eject & unmount a zip disk using the following command
sudo eject  /dev/zip

which can of course,  be used in a script which can be linked to an 
application icon








-- 
Alex

Steve Balmer, CEO of Microsoft, recently referred to LINUX as a cancer.
Unsurprisingly, that's incorrect; LINUX was released on August 25th,
1991 and is therefore a Virgo.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to