Problem in Ubuntu: when count of logged in users more than one and USB flash drive is connectig to the PC and after switching the user the window of authentication appears. This annoying popup can be simply fixed.
Authentication is required to mount USB /dev/sdc1

Checking the file:

$ sudo nano /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

which actions we have for this rule:

[Mounting, checking, etc. of internal drives]

We're interesting in mounting rule org.freedesktop.udisks2.filesystem-mount-system

To fix our bug you should made changes to the file /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy

$ sudo nano /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy

in action <action id="org.freedesktop.udisks2.filesystem-mount-system">




Finally USB flash drive will be mounted ONLY for current active user and there will be no popup window when activating another user session. No more password enering to mount usb drive. Use USB drive only in active user session. 

In this case the popup still had a place when you want to unmount USB flash drive from another user.


Вміст цього поля є приватним і не буде доступний широкому загалу.
  • Не дозволено жодних HTML теґів.
                                    ooooo      ooo   .oooooo..o      .   
`888b. `8' d8P' `Y8 .o8
oooooooo .ooooo. .ooooo oo 8 `88b. 8 Y88bo. .o888oo
d'""7d8P d88' `88b d88' `888 8 `88b. 8 `"Y8888o. 888
.d8P' 888ooo888 888 888 8 `88b.8 `"Y88b 888
.d8P' .P 888 .o 888 888 8 `888 oo .d8P 888 .
d8888888P `Y8bod8P' `V8bod888 o8o `8 8""88888P' "888"
Уведіть код, зображений у стилі Ascii-Арт.