Bug 16502

Summary: Unable to mount removable devices w/o root password after upgrade to MGA5
Product: Mageia Reporter: Tomas Kindl <supp>
Component: RPM PackagesAssignee: Nicolas Lécureuil <mageia>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000, marja11, nic
Version: 5   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: polkit-0.113-1.mga5 CVE:
Status comment:

Description Tomas Kindl 2015-07-30 15:27:23 CEST
Description of problem:
After upgrade from MGA4 -> MGA5 
(as per instructions, e.g. urpmi --auto --auto-update --replacefiles) 

we're unable to mount USB sticks in KDE without entering root password.

Most likely Polkit related. 

After changing /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy 

<action id="org.freedesktop.udisks2.filesystem-mount">
to <allow_any>yes</allow_any>
and restarting (which is very dirty hack but I was in a hurry), 
problem goes away.

All affected systems are x86_64 and upgraded from MGA4, fresh installs doesn't suffer from this condition.


Version-Release number of selected component (if applicable):
polkit-0.113-1.mga5

How reproducible:
Always

Steps to Reproduce:
1. Upgrade system from MGA4 to MGA5
2. Insert USB stick
3. Try to mount it in KDE


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-08-02 19:01:12 CEST
assigning to polkit and KDE maintainer

CC: (none) => marja11
Assignee: bugsquad => mageia

Comment 2 Florian Hubold 2015-10-04 17:10:00 CEST
(In reply to Tomas Kindl from comment #0)
> we're unable to mount USB sticks in KDE without entering root password.
> 
> Most likely Polkit related. 
> 
> After changing /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy 

What filesystems are on those USB sticks?
And FWIW, with the polkit policy you changed you allow anyone on the system, even those with an inactive session to mount USB mass storage devices. 

And the suitable place for such a rule has to be under /etc/polkit-1/rules.d/
See e.g. https://forums.mageia.org/en/viewtopic.php?f=41&t=5148 for an example.

CC: (none) => doktor5000

Comment 3 Tomas Kindl 2015-10-04 21:31:33 CEST
Doesn't matter - basically FAT32, sometimes ext2, still fails. Thanks for tip for workaround for time being BTW :)
Comment 4 Florian Hubold 2015-10-07 21:02:04 CEST
That is not a workaround, that is the proper solution for those external media that support uid/gid/posix permissions. I'd not want somebody to be able to mount an USB drive as user where I stored my backups, and he would be able to read/write/delete them - as the numeric uid/gid will be probably the same for both computers.
This applies to at least ext and other unix filesystems and partitions on drives recognised as "internal" drives which includes a lot of eSATA drives.

For FAT32 although that would not be expected.

And FWIW you are the only one to encounter this bug as of now.

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 5 Florian Hubold 2015-11-02 21:45:33 CET
Please provide an actual example of a FAT32 stick that cannot be mounted without root password, e.g. the "mount" output if you mounted it in KDE after providing the output.
Comment 6 Nic Baxter 2016-03-01 05:42:52 CET
Hi Tomas
Anything further? Response to Comment #5

CC: (none) => nic

Comment 7 Nic Baxter 2016-03-18 05:08:52 CET
Since there are insufficient details provided in this report for us to investigate the issue further, and we have not received feedback to the information we have requested above, we will assume the problem was not reproducible, or has been fixed in one of the updates we have released for the reporter's distribution.

Users who have experienced this problem are encouraged to upgrade to the latest update of their distribution, and if this issue turns out to still be reproducible in the latest update, please reopen this bug with additional information.

Closing as OLD.

Status: UNCONFIRMED => RESOLVED
Resolution: (none) => OLD