Devuan bug report logs - #296
policykit: Unable to mount USB stick from Desktop session due to default policykit rule

Package: policykit-1; Reported by: JieFK <[email protected]>; Done: Mark Hindley <[email protected]>; Maintainer for policykit-1 is Devuan Dev Team <[email protected]>.

Message received at [email protected]:


Received: (at 296-close) by bugs.devuan.org; 27 Feb 2023 11:21:21 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Mon, 27 Feb 2023 11:21:17 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 4apvAyuS/GMGcgAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 27 Feb 2023 11:21:15 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id D49AE92; Mon, 27 Feb 2023 11:21:14 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 4F8FC25
	for <[email protected]>; Mon, 27 Feb 2023 11:21:07 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pWbZ4-00081C-EI; Mon, 27 Feb 2023 11:21:06 +0000
Received: (nullmailer pid 5150 invoked by uid 1000);
	Mon, 27 Feb 2023 11:21:05 -0000
Date: Mon, 27 Feb 2023 11:21:05 +0000
From: Mark Hindley <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: bug#296: policykit: Unable to mount USB stick from Desktop
 session due to default policykit rule
Message-ID: <Y/[email protected]>
References: <155120789680.9015.12620722624421713389.reportbug@devuan>
 <Y/[email protected]>
 <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>

On Sun, Feb 26, 2023 at 03:21:37PM +0100, [email protected] 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

Notification sent to JieFK <[email protected]>:
bug acknowledged by developer. Full text available.
Reply sent to Mark Hindley <[email protected]>:
You have taken responsibility. Full text available.
bug reassigned from package 'policykit' to 'policykit-1'. Request was from Mark Hindley <[email protected]> to [email protected]. Full text available.

Message received at [email protected]:


Received: (at 296) by bugs.devuan.org; 20 Feb 2023 19:19:33 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from email.devuan.org [2001:41d0:2:d06e::5c4:2612]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Mon, 20 Feb 2023 19:19:33 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id KhB3ML3H82MYHQAAmSBk0A
	(envelope-from <[email protected]>)
	for <[email protected]>; Mon, 20 Feb 2023 19:19:25 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id BCF5890; Mon, 20 Feb 2023 19:19:25 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS
	autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; [email protected]; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id 76B4525
	for <[email protected]>; Mon, 20 Feb 2023 19:19:25 +0000 (UTC)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1pUBh6-0006pP-0K; Mon, 20 Feb 2023 19:19:24 +0000
Received: (nullmailer pid 18357 invoked by uid 1000);
	Mon, 20 Feb 2023 19:19:23 -0000
Date: Mon, 20 Feb 2023 19:19:23 +0000
From: Mark Hindley <[email protected]>
To: JieFK <[email protected]>, [email protected]
Subject: Re: bug#296: policykit: Unable to mount USB stick from Desktop
 session due to default policykit rule
Message-ID: <Y/[email protected]>
References: <155120789680.9015.12620722624421713389.reportbug@devuan>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <155120789680.9015.12620722624421713389.reportbug@devuan>
X-Debbugs-No-Ack: No Thanks

Control: reassign -1 policykit-1

Hi,

Sorry for the delya with this.

On Tue, Feb 26, 2019 at 08:04:56PM +0100, JieFK wrote:
> Package: policykit
> Severity: normal
> 
> Dear Maintainer,
> 
> Plugging an USB stick makes polkit ask for root password.

Did/do have an elogind or consolekit based system?

Thanks

Mark

Information forwarded to [email protected], [email protected]:
bug#296; Package policykit. Full text available.

Message received at [email protected]:


Received: (at submit) by bugs.devuan.org; 26 Feb 2019 19:10:02 +0000
Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from tupac3.dyne.org [195.169.149.119]
	by fulcanelli with IMAP (fetchmail-6.3.26)
	for <debbugs@localhost> (single-drop); Tue, 26 Feb 2019 20:10:02 +0100 (CET)
Received: from devuan (20-4-190-109.dsl.ovh.fr [109.190.4.20])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 36B13F60B65
	for <[email protected]>; Tue, 26 Feb 2019 20:04:59 +0100 (CET)
Received: from tukuyomi by devuan with local (Exim 4.92-RC6)
	(envelope-from <[email protected]>)
	id 1gyi2D-0002Oj-4r; Tue, 26 Feb 2019 20:04:57 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: JieFK <[email protected]>
To: Devuan Bug Tracking System <[email protected]>
Subject: policykit: Unable to mount USB stick from Desktop session due to default policykit rule
Message-ID: <155120789680.9015.12620722624421713389.reportbug@devuan>
X-Mailer: reportbug 7.5.1+devuan1
Date: Tue, 26 Feb 2019 20:04:56 +0100
X-Spam-Status: No, score=1.3 required=5.0 tests=FSL_HELO_NON_FQDN_1,
	RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=disabled version=3.4.2
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

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


Acknowledgement sent to JieFK <[email protected]>:
New bug report received and forwarded. Copy sent to [email protected]. Full text available.
Report forwarded to [email protected], [email protected]:
bug#296; Package policykit. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <[email protected]>.
Last modified: Thu, 28 Nov 2024 06:39:01 UTC