Mailinglist Archive: opensuse-kde3 (29 mails)

< Previous Next >
Re: [opensuse-kde3] 13.1: can only safely remove usb device as root user
Ilya Chernykh <anixxsus@xxxxxxxxx> írta:

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@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-kde3+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups
References