Registered Member
|
Can someone help me set up "eject" correctly???
I want amarok to disconnect my iPod in the correct way. So that it doesn't give the message "Connected, Eject before disconnecting" before I unplug it. For predisconnect I use: mount %d and for post-disconnect: umount %d But it want to also do eject, so basically "umount %d && eject %d" Because when eject my iPod as root "sudo eject /media/ipod", the iPod itself also recognizes that it's safe to disconnect. So this already works(!!), but I don't wanna fire up a terminal everytime I want to unplug my iPod. Unfortunately I cannot do this as normal user. So I thought I'd edit '/etc/sudoers'. I changed it into this (use visudo to edit!!): [php]# /etc/sudoers Defaults env_reset # Cmnd alias specification Cmnd_Alias IPOD=/usr/bin/eject # User privilege specification root ALL=(ALL) ALL jaapkroe ALL= NOPASSWD: EJECT %admin ALL=(ALL) ALL [/php] But it doesn't change anything! When I run eject as user, I get:
And for "eject /media/ipod"
This UUID relates to my Ipod, because
And here's the iPod from my fstab:
I'm using KDE 4.1.2 and Kernel version 2.6.27-7 on a 64bit Kubuntu install. Now that I've given you an overkill of information, hopefully someone can help me figure out how to get this working. It's not an amarok-specific question because it also doesn't work in konsole or whatever terminal. I think this is a kde-related question, because under Gnome the gnome-eject does work for normal users.
jaapkroe, proud to be a member of KDE forums since 2008-Oct.
|
Administrator
|
Just guessing but doesn't command alias mean that you should be executing sudo ipod /dev/xxx?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
kubuntu intrepid 8.10 here.
I had the same problem but I think I found a good solution. To make the eject command work as a normal user I googled a bit and discovered that adding the user to the "disk" group was enough:
At this point I was able to use it perfectly in amarok with, Pre-connect command: mount /media/ipod Post-disconnect command: eject /media/ipod And now I can mount and eject the ipod perfectly from amarok. Hope it helps.
Last edited by sickrandir on Fri Nov 21, 2008 2:39 pm, edited 1 time in total.
sickrandir, proud to be a member of KDE forums since 2008-Nov.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]