Subject: bug#296: policykit: Unable to mount USB stick from Desktop session due to default policykit rule

From: JieFK <[email-masked]>
Date: Tue, 26 Feb 2019 20:04:56 +0100

Package: policykit
Severity: normal

Dear Maintainer,

Plugging an USB stick makes polkit ask for root password.

Manually modifying rules in /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy works
-- ie USB stick is mounted seamlessly (no user/root passwd asked)
However, copying this above file to /etc/polkit-1/actions/ --to make modification survive updates-- does not work.

Also, instead of modifying org.freedesktop.UDisks2.policy, I found this working solution here : https://dev1galaxy.org/viewtopic.php?pid=7848#p7848

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux beowulf/ceres
Release:	10
Codename:	n/a
Architecture: x86_64

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

---

From: Mark Hindley <[email-masked]>
Date: Mon, 20 Feb 2023 19:19:23 +0000

Control: reassign -1 policykit-1

Hi,

Sorry for the delya with this.

> Plugging an USB stick makes polkit ask for root password.

Did/do have an elogind or consolekit based system?

Thanks

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Mon, 27 Feb 2023 11:22:15 +0000

This is an automatic notification regarding your bug report
which was filed against the policykit-1 package:

#296: policykit: Unable to mount USB stick from Desktop session due to default policykit rule

It has been closed by Mark Hindley <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mark Hindley <[email-masked]> by
replying to this email.

-- 
296: https://bugs.devuan.org/cgi/bugreport.cgi?bug=296
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#296: policykit: Unable to mount USB stick from Desktop session due to default policykit rule
From: Mark Hindley <[email-masked]>
To: [email-masked]
Cc: [email-masked]
Date: Mon, 27 Feb 2023 11:21:05 +0000

On Sun, Feb 26, 2023 at 03:21:37PM +0100, [email-masked] wrote:
>    Now I can't tell you if the system is elogind or consolekit based
>    system, sorry. Also by now, I don't have the laptop anymore.
>    Furthermore my recent problem was that I was "not authorized to mount
>    the USB stick", rather than "Ask for root passwd" (on recent KDE Plasma
>    desktop)
>    Sorry I can't help you more with this

I am not sure there is anything more we can do with this report then. There
isn't enough information to debug it and if you no longer have access...

So I propose to close.

If it recurs and you can provide more information, do reopen.

For future reference

 dpkg -l | grep 'elogind\|consolekit'

will identify which session management a system is using.

Thanks

Mark

Subject: policykit: Unable to mount USB stick from Desktop session due to default policykit rule
From: JieFK <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Tue, 26 Feb 2019 20:04:56 +0100

Package: policykit
Severity: normal

Dear Maintainer,

-- System Information:
Distributor ID:	Devuan