Bug 20095

Summary: mcc does not start when run from a different user than root.
Product: Mageia Reporter: Xuo <xuoy>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Normal CC: marja11, thierry.vignaud, xuoy
Version: 5Keywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mate-polkit CVE:
Status comment:

Description Xuo 2017-01-10 18:32:25 CET
Description of problem:

Hi,

I can't run mcc from the desktop icon nor as user xuo.
This bug looks more or less like this one (https://bugs.mageia.org/show_bug.cgi?id=16396).
It occurs for me on at least 2 laptops.
I am running mageia5 x86_64 on the first one, mageia5 i686 on the second one.

It does not depend on the fact that I log in or out from a previous session. This behaviour occurs since several months but I was leaving with it (see (in french) https://www.mageialinux-online.org/forum/topic-20672+drakconf-mcc-ne-se-lance-pas-a-partir-de-son-icone-sous-xfce.php). As I've installed Mageia on another laptop, and see this bug is still there, I open this bug.

As you can notice below, my user id is less than 1000 (500).


/home/xuo 16 # mcc
==== AUTHENTICATING FOR org.mageia.drakconf.pkexec.run ===
Authentication is required to run Mageia Control Center GUI
Authenticating as: root
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.

cat /run/systemd/users/500
# This is private data. Do not parse.
NAME=xuo
STATE=active
RUNTIME=/run/user/500
SERVICE=user@500.service
SLICE=user-500.slice
DISPLAY=c2
REALTIME=1483992687380753
MONOTONIC=89383081
SESSIONS=c2
SEATS=seat0
ACTIVE_SESSIONS=c2
ONLINE_SESSIONS=c2
ACTIVE_SEATS=seat0
ONLINE_SEATS=seat0


Regards.

Xuo.
Rémi Verschelde 2017-01-10 22:05:41 CET

Assignee: bugsquad => mageiatools
Source RPM: (none) => polkit?

Thierry Vignaud 2017-01-12 19:12:07 CET

CC: (none) => thierry.vignaud
Source RPM: polkit? => polkit

Comment 1 Xuo 2017-02-16 20:18:15 CET
Hi,

I could make it work.
I had to remove the directory .config/autostart that contained the following files :
-rw-r--r-- 1 xuo users 208 août 9 2015 CryptKeeper.desktop
-rw-r--r-- 1 xuo users 29 sept. 29 21:28 deja-dup-monitor.desktop
-rw-r--r-- 1 xuo users 29 août 9 2015 mageiawelcome.desktop
-rw-r--r-- 1 xuo users 214 sept. 27 20:49 Nextcloud.desktop
-rw-r--r-- 1 xuo users 237 sept. 29 21:10 NextCloud.desktop
-rw-r--r-- 1 xuo users 212 sept. 27 20:44 ownCloud.desktop
-rw-r--r-- 1 xuo users 29 juil. 11 2015 polkit-mate-authentication-agent-1.desktop

From now, running 'mcc' as another user than root opens a dialog box where I can enter the root password and the mcc icon or the mageia-update one work too.

Regards.

Xuo.

CC: (none) => xuoy

Comment 2 Xuo 2017-02-16 20:20:49 CET
Hi,

I consider this bug as "resolved" even though I didn't understand the reason why these files could prevent from running the mcc command or the corresponding icons.

Regards.

Xuo.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 3 Thierry Vignaud 2017-02-16 21:34:33 CET
That's not a proper fix.
There's still an issue with mate-polkit
What desktop are you using?
What's the result of the following command?
rpm -q --whatprovides polkit-agent

Keywords: (none) => NEEDINFO
Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 4 Xuo 2017-02-16 21:46:48 CET
Hi,

I am using xfce with mageia 5.
# rpm -q --whatprovides polkit-agent
mate-polkit-1.8.0-6.mga5

Regards.

Xuo.
Comment 5 Marja Van Waes 2018-07-12 13:45:13 CEST
Hi Eric/Xuo,

Did this bug get fixed? If so, please change its status to RESOLVED - FIXED

If it didn't, then we regret that we weren't able to fix it in Mageia 5. Mageia 5 has officially reached its End of Life on December 31st, 2017 https://blog.mageia.org/en/2017/11/07/mageia-5-eol-postponed/
It only continued to get important security updates since then, because we were waiting for the big Plasma5 update in Mageia 6, that fixed many of the Mageia 5 => 6 upgrade issues.

If you haven't seen that this bug got fixed, then please check whether this bug still exists in Mageia 6. If it does, then please change the Version (near the top, at the left) to "6". If you know it exists in Cauldron, then change Version to Cauldron. If you see it in both Cauldron and Mageia 6, then please set Version to Cauldron and add MGA6TOO on the Whiteboard.

CC: (none) => marja11
Source RPM: polkit => mate-polkit

Comment 6 Xuo 2018-07-16 21:04:02 CEST
Hi,

This bug does not occur on Mageia6. I consider it as solved.

Regards.

Xuo.

Resolution: (none) => FIXED
Status: REOPENED => RESOLVED