You are not logged in.
Pages: 1
Topic closed
For some unknown reason, after the last update, Nautilus (the version from GNOME 3.6) requires to enter the root password (not my administrator account's password, the actual root's password) in order to mount any kind of external drive (pendrives, SD cards, etcetera). Right now I'm running with pure systemd and I already included myself as a member of the disk group. What can be causing this problem?
Offline
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
Check above file and check if you allow active is yes,if you're concerned about partitions then check for internal drive.
<action id="org.freedesktop.udisks.filesystem-mount">
<description>Mount a device</description>
<description xml:lang="da">Montér en enhed</description>
<message>Authentication is required to mount the device</message>
<message xml:lang="da">Autorisering er påkrævet for at montere et fil system</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
Offline
I checked the file, allow_active is set as "yes" (i.e., I haven't touched it anyhow). Still, the root issue persists.
Offline
Myself, I had to change all "Mount a device" to yes, but it works now in KDE.
Offline
Myself, I had to change all "Mount a device" to yes, but it works now in KDE.
How did you set all "Mount a device" to yes, exactly?
Offline
Your problem might be related to the new polkit rules ... take it as an FYI
Polkit 0.107-4 uses javascript "rules" .... instead of the old pkla format.
In my case, Nautilus wanted authentication to mount internal drives.
I took care of it by creating /etc/polkit-1/rules.d/10-auth.rules with the following content :
polkit.addRule(function(action, subject) {
if (action.id="org.freedesktop.udisks2.filesystem-mount-system" && subject.isInGroup("storage")) {
return polkit.Result.YES;
}
}
);
... and that was it .. it takes effect immediately ( polkit monitors that directory, and makes changes on the fly. )
When Nautilus asks for authentication, check the specific action-id ( if different from filesystem-mount-system), and adjust accordingly.
Again, your issue might be unrelated ... but I thought this might come in handy sometime.
Offline
Aaand solved! Perhaps someone should post this as a bugfix. Thanks!
Offline
Your problem might be related to the new polkit rules ... take it as an FYI
Polkit 0.107-4 uses javascript "rules" .... instead of the old pkla format.In my case, Nautilus wanted authentication to mount internal drives.
I took care of it by creating /etc/polkit-1/rules.d/10-auth.rules with the following content :polkit.addRule(function(action, subject) { if (action.id="org.freedesktop.udisks2.filesystem-mount-system" && subject.isInGroup("storage")) { return polkit.Result.YES; } } );
... and that was it .. it takes effect immediately ( polkit monitors that directory, and makes changes on the fly. )
When Nautilus asks for authentication, check the specific action-id ( if different from filesystem-mount-system), and adjust accordingly.
Again, your issue might be unrelated ... but I thought this might come in handy sometime.
Truly sorry for kicking a dead horse here, but I encounter this problem recently (on another distro, not arch) and google point me to your post first hand. So I think it may help others coming across that while your code is... WRONG
That rule won't just only allow authentication for mounting, it will skip authentication for every action. Be cause the correct code for checking action.id is == (double equal sign), a single equal sign is an assignment is return TRUE.
Offline
Thanks for clarification.
Closing.
Offline
Pages: 1
Topic closed