[opensuse-kde3] 13.1: can only safely remove usb device as root user
Anyone know what needs to be configured or installed to enable a normal user to safely remove a stick mounted via auto discovery and opened in Konq as file manager? Is it simply a matter of hal not being installed? Are there negative consequences to having hal on 13.1? In 11.4 safely remove from Konq context menu just worked, no fuss, no complaint about no permission. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Felix Miata írta:
Anyone know what needs to be configured or installed to enable a normal user to safely remove a stick mounted via auto discovery and opened in Konq as file manager? Is it simply a matter of hal not being installed? Are there negative consequences to having hal on 13.1? In 11.4 safely remove from Konq context menu just worked, no fuss, no complaint about no permission.
Felix, This has been a long known problem in newer openSUSE versions with KDE3. The last openSUSE version where I could make this behavior normal was oS 12.2. This makes me stick with that openSUSE version. This is not only a matter of HAL installation. Even HAL enabled KDE3 base packages do not work in newer openSUSE in this matter if I remember correctly. With normal KDE base packages (that is, not HAL enabled) you have two options: 1. Disable udisk2 backend in KDE control center (Peripherals -> Storage media -> Advanced). In this case safe removal works but but USB media is recognized as normal hard drives. 2. Leave udisks2 backend active. In this case the media is recognized correctly but safe removel does not work. Automounting works in both cases and default mount options cannot be set for the specific USB media in any of the two approach. Whichever method you choose it will not be as functional than the original behavior. A possible workaround: If you choose option 2 you can remove, more precisely unmount the media in konsole command line or using krusader file manager (right click -> unmount). It only unmounts the file sytem and the icon stays on the desktop indicating unmounted state. It would be nice if the code of "safely remove" could be changed for the code used in krusader. For references on this topic see: [opensuse-kde3] automount of USB disk in openSUSE 12.3 / KDE3 http://lists.opensuse.org/opensuse-kde3/2013-11/msg00014.html [opensuse-kde3] OpenSUSE 12.2 and USB-stick safely remove http://lists.opensuse.org/opensuse-kde3/2012-10/msg00010.html Chika's journal http://mistie710.livejournal.com/?skip=25 search for "HAL" or "Hal" (case sensitive) Cheers, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
2. Leave udisks2 backend active. In this case the media is recognized correctly but safe removel does not work.
I am tired to explain this. How to enable safe removal has with udisks2 backend been described in this mailing list myriads of times, and peopole who were subscribed to it for all these years still ask this question! I do not want to repeat it 100-th time, just use the search! -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Ilya Chernykh composed on 2015-10-04 18:12 (UTC+0300):
2. Leave udisks2 backend active. In this case the media is recognized correctly but safe removel does not work.
I am tired to explain this. How to enable safe removal has with udisks2 backend been described in this mailing list myriads of times, and peopole who were subscribed to it for all these years still ask this question!
I do not want to repeat it 100-th time, just use the search!
Is http://lists.opensuse.org/opensuse-kde3/2013-11/msg00031.html what you are talking about? If it is, it needs to be cleaned up and put in a wiki page. Good answers are really hard to locate and identify as appropriate in mailing list archives. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Felix, it seems we've both went through this question already: [opensuse-kde3] 13.1 user cannot eject usb stick http://lists.opensuse.org/opensuse-kde3/2015-02/msg00001.html
Ilya Chernykh composed on 2015-10-04 18:12 (UTC+0300):
2. Leave udisks2 backend active. In this case the media is recognized correctly but safe removel does not work.
I am tired to explain this. How to enable safe removal has with udisks2 backend been described in this mailing list myriads of times,
The above linked thread refers you and a solution but I could not find your original message in the opensuse-kde3 list. In my message I only repeated what you wrote earlier. Even if the linked polkit solution works I guess it will not restore the option for changing default mount options, which was the original behavior of KDE3 automounting. Cheers, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Is http://lists.opensuse.org/opensuse-kde3/2013-11/msg00031.html what you are talking about? If it is, it needs to be cleaned up and put in a wiki page. Good answers are really hard to locate and identify as appropriate in mailing list archives.
No. It has been explained on this list several times, by me and by Serghei Amelian how to enable safe removal with Udisks2 backend. I thought everybody on this list already knows that. I wonder how it comes that people who are here for years still ask this. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
The above linked thread refers you and a solution but I could not find your original message in the opensuse-kde3 list. In my message I only repeated what you wrote earlier. Even if the linked polkit solution works I guess it will not restore the option for changing default mount options, which was the original behavior of KDE3 automounting.
This is just one instance where I answered this question: http://lists.opensuse.org/opensuse-kde3/2013-12/msg00000.html I am really tired. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Is http://lists.opensuse.org/opensuse-kde3/2013-11/msg00031.html what you are talking about? If it is, it needs to be cleaned up and put in a wiki page. Good answers are really hard to locate and identify as appropriate in mailing list archives.
Do not you remember that YOU have been answered this question multiple times in this mailing list? http://lists.opensuse.org/opensuse-kde3/2015-02/msg00002.html -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Ilya Chernykh
Is http://lists.opensuse.org/opensuse-kde3/2013-11/msg00031.html what you are talking about? If it is, it needs to be cleaned up and put in a wiki page. Good answers are really hard to locate and identify as appropriate in mailing list archives.
Do not you remember that YOU have been answered this question multiple times in this mailing list?
http://lists.opensuse.org/opensuse-kde3/2015-02/msg00002.html
That's correct. And if you look at the answer to the message you linked you see I wrote that this solution does not work in openSUSE 13.2. http://lists.opensuse.org/opensuse-kde3/2015-02/msg00004.html Now I tried it again. I created the /etc/polkit-1/rules.d/10-allow-mount.rules file with the content: // Allow udisks2 to mount devices without authentication // for users in the "users" group. polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || action.id == "org.freedesktop.udisks2.filesystem-mount") && subject.isInGroup("users")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") && subject.isInGroup("users")) { return polkit.Result.YES; } }); Restarted polkit: systemctl restart polkit systemctl status polkit polkit.service - Authorization Manager Loaded: loaded (/usr/lib/systemd/system/polkit.service; static) Active: active (running) since Mon 2015-10-05 14:29:37 CEST; 1s ago Docs: man:polkit(8) Main PID: 3056 (polkitd) CGroup: /system.slice/polkit.service └─3056 /usr/lib/polkit-1/polkitd --no-debug Oct 05 14:29:37 xxxxxxxx polkitd[3056]: Started polkitd version 0.112 Oct 05 14:29:37 xxxxxxxx polkitd[3056]: Loading rules from directory /etc/polkit-1/rules.d Oct 05 14:29:37 xxxxxxxx polkitd[3056]: Loading rules from directory /usr/share/polkit-1/rules.d Oct 05 14:29:37 xxxxxxxx polkitd[3056]: Finished loading, compiling and executing 3 rules Oct 05 14:29:37 xxxxxxxx polkitd[3056]: Acquired the name org.freedesktop.PolicyKit1 on the system bus The user is in the users group: cat /etc/group | grep test users:x:100:test Still I cannot safely remove mounted USB devices. Does it matter which login manager is used, KDM3 or KDM4? Currently I use KDM4. Thanks, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Hi,
On Mon, Oct 5, 2015 at 4:12 PM, Ilya Chernykh
I wrote that this solution does not work in openSUSE 13.2.
In that case I do not know the solution, sorry.
I have to admit that I've forgotten about this stuff myself :-(. I definitely prefer to unmount as root than to remember adding this policy-kit rules. But I've just checked on both 13.2 and 13.1. In 13.1 (the display manager is kdm4) I see the icon of auto-mounted device, when selecting "safely remove" I'm getting: Unable to unmount "/dev/sdd1". Reason: Not authorized to perform operation But unmount or eject command in terminal window (non-root) work OK. In 13.2 (the display manger is kdm3) I do not see the icon (strange?), eject or unmount as non-root fail. But if I go to "storage media" and select "safely remove" for that device it works! I do not think display manager should be important here, though who knows. I guess, I'll stay with unmounting as root. -- Mark Goldstein -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
In 13.2 (the display manger is kdm3) I do not see the icon (strange?), eject or unmount as non-root fail. But if I go to "storage media" and select "safely remove" for that device it works!
Yes, this is exactly what I meant. You go to "my computer" and unmount the drive. I do not know from where various tray icons come from, possibly even not from KDE3. -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On 05/10/2015 15:27, Mark Goldstein wrote:
Hi,
On Mon, Oct 5, 2015 at 4:12 PM, Ilya Chernykh
wrote: I wrote that this solution does not work in openSUSE 13.2. In that case I do not know the solution, sorry. I have to admit that I've forgotten about this stuff myself :-(.
I definitely prefer to unmount as root than to remember adding this policy-kit rules. But I've just checked on both 13.2 and 13.1.
In 13.1 (the display manager is kdm4) I see the icon of auto-mounted device, when selecting "safely remove" I'm getting: Unable to unmount "/dev/sdd1". Reason: Not authorized to perform operation
But unmount or eject command in terminal window (non-root) work OK.
In 13.2 (the display manger is kdm3) I do not see the icon (strange?), eject or unmount as non-root fail. But if I go to "storage media" and select "safely remove" for that device it works!
I do not think display manager should be important here, though who knows.
I guess, I'll stay with unmounting as root. Must admit that I was a bit surprised to see my journal quoted! Anyway, I should mention (if I didn't put it in my journal, I forget now) that I started to use Kwikdisk to get around the problems with KDE3 on 13.1. I didn't actually try 13.2 and I mostly use it for dismounting SD cards rather than USB devices (I know that USB drives will not dismount that way but I rarely use them except for backups).
Just gave it a go and found that it doesn't work. The only other thing I
have known to work is to use udisks from my own account (not root).
1. Do a df and identify the block device for the USB drive
2. Enter the command udisks --unmount
Mark Goldstein írta:
Hi,
On Mon, Oct 5, 2015 at 4:12 PM, Ilya Chernykh
wrote: I wrote that this solution does not work in openSUSE 13.2.
In that case I do not know the solution, sorry.
I have to admit that I've forgotten about this stuff myself :-(.
I definitely prefer to unmount as root than to remember adding this policy-kit rules. But I've just checked on both 13.2 and 13.1.
In 13.1 (the display manager is kdm4) I see the icon of auto-mounted device, when selecting "safely remove" I'm getting: Unable to unmount "/dev/sdd1". Reason: Not authorized to perform operation
But unmount or eject command in terminal window (non-root) work OK.
In 13.2 (the display manger is kdm3) I do not see the icon (strange?), eject or unmount as non-root fail.
I have the USB device icon mounted on the desktop after inserting USB flash disk. This part works for me OK.
But if I go to "storage media" and select "safely remove" for that device it works!
I tried safely remove - the mounted icon on the desktop - in media window (konqueror location: media:/) - in sysinfo window (konqueror locatonL sysinfo:/) I all 3 cases the resut is the same: a window titled "Error - kio_media_mounthelper" pops up saying "Unable to unmount /dev/sdc1. Reason: not autorized to perform operation." I even created a brand new test user to test, it gave the same result.
I do not think display manager should be important here, though who knows.
I changed kdm4 with kdm3, it did not make a difference. Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
On Tue, Oct 6, 2015 at 8:09 PM, Istvan Gabor
tried safely remove - the mounted icon on the desktop - in media window (konqueror location: media:/) - in sysinfo window (konqueror locatonL sysinfo:/)
This is all in 13.1 or 13.2? BTW, udisks --uninstall /dev/sdxn (as Chris mentioned) also works for me in 13.1 (but I've added the policy-kit rules already). -- Mark Goldstein -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Mark Goldstein írta:
On Tue, Oct 6, 2015 at 8:09 PM, Istvan Gabor
wrote: tried safely remove - the mounted icon on the desktop - in media window (konqueror location: media:/) - in sysinfo window (konqueror locatonL sysinfo:/)
This is all in 13.1 or 13.2?
It's oS 13.2. I didn't try 13.1.
BTW, udisks --uninstall /dev/sdxn (as Chris mentioned) also works for me in 13.1 (but I've added the policy-kit rules already).
The goal is to have clickable mount/unmount so that inexperienced users could mount and remove devices. Thanks, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Hello: I have installed openSUSE 13.1 from DVD to try safely remove. I have installed a minimal X workstation during setup, then I added KDE3 repos and installed KDE3 packages. I don't have any KDE4 packages installed, all tabooed. I also created the /etc/polkit-1/rules.d/10-allow-mount.rules file with content: // Allow udisks2 to mount devices without authentication // for users in the "users" group. polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" || action.id == "org.freedesktop.udisks2.filesystem-mount") && subject.isInGroup("users")) { return polkit.Result.YES; } }); polkit.addRule(function(action, subject) { if ((action.id == "org.freedesktop.udisks.filesystem-mount-system-internal") && subject.isInGroup("users")) { return polkit.Result.YES; } }); The user is in the users group. Rebooted the computer. Still safely remove does not work, it gives the "Not authorized to perform operation" message. These are the KDE3 base packages I have (from KDE3 repo): ~> rpm -qa|grep -i kdebase3 kdebase3-extra-3.5.10.1-391.3.x86_64 kdebase3-apps-3.5.10.1-391.3.x86_64 kdebase3-runtime-3.5.10.1-391.3.x86_64 kdebase3-3.5.10.1-391.3.x86_64 kdebase3-ksysguardd-3.5.10.1-391.3.x86_64 kdebase3-workspace-3.5.10.1-391.3.x86_64 kdebase3-session-3.5.10.1-391.3.x86_64 kdebase3-samba-3.5.10.1-391.3.x86_64 kdebase3-nsplugin-3.5.10.1-391.3.x86_64 kdebase3-kdm-3.5.10.1-391.3.x86_64 kdebase3-SuSE-11.3-117.1.x86_64 kdebase3-SuSE-branding-openSUSE-11.3-117.1.x86_64 kdebase3-SuSE-lang-11.3-117.1.noarch What should I check? It must be some package or configuration if the above solution works for others. Thanks, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
The user is in the users group. Rebooted the computer. Still safely remove does not work, it gives the "Not authorized to perform operation" message.
What program do you use for safely removing? -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
Ilya Chernykh írta:
The user is in the users group. Rebooted the computer. Still safely remove does not work, it gives the "Not authorized to perform operation" message.
What program do you use for safely removing?
I don't use any specific program, it's KDE3 desktop. When I mount the device, an USB flash disk icon is placed on the desktop indicating mounted state (little green triangle). I right click on this icon and select safely remove from the pulldown list. It gives the "not authorized" message. The same happens if I try to unmount the device from "storage media" (konqueror window, URL is "media:/") window. Thanks, Istvan -- To unsubscribe, e-mail: opensuse-kde3+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde3+owner@opensuse.org
participants (5)
-
Chris Johnson
-
Felix Miata
-
Ilya Chernykh
-
Istvan Gabor
-
Mark Goldstein