Bug 27574 - Authentication problem in lxde
Summary: Authentication problem in lxde
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-11-06 18:06 CET by Morgan Leijström
Modified: 2020-11-27 21:16 CET (History)
6 users (show)

See Also:
Source RPM: task-lxde-7-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2020-11-06 18:06:57 CET
__SETUP:
This system is my daily driver using Plasma, no problems.
I am member of wheel, so launching mcc, i validate as my normal user.
System is often, like currently, updated fully to updates testing repo.
To test for another bug, i installed task-lxde-minimal, and rebooted.
Now in LXDE:


__PROBLEM:
Clicking Mageia Control Centre icon in systray or menu, nothing visible happen!

Trying in LXTerminal:

$ mcc
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
==== AUTHENTICATING FOR org.mageia.drakconf.pkexec.run ====
Authentication is required to run Mageia Control Center GUI
Authenticating as: Morgan Leijström (morgan)
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.



__Other tests:

sudo: works

Isodumper: Report pane in Isodumper say "Authentication error.", and output in LXterminal where i started it say "Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address
Comment 1 Aurelien Oudelet 2020-11-07 10:57:23 CET
Hi, thanks reporting this.

I think there is something missing with polkit with LXDE.

On my side, M8-Cauldron Plasma, user member of wheel group:

----BEGIN QUOTE TERMINAL---------------------

$ mcc
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
Ignore the following Glib::Object::Introspection & Gtk3 warnings
Subroutine Gtk3::main redefined at /usr/share/perl5/vendor_perl/Gtk3.pm line 539.

[AT THIS TIME: there is a GUI Polkit-agent to ask me my password]

GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed at /usr/lib64/perl5/DynaLoader.pm line 210.
Oops, secure memory pool already initialized
Oops, secure memory pool already initialized
error: XDG_RUNTIME_DIR not set in the environment.
-----END QUOTE--------------------------------

Running "mcc" from a CLI while under a X/Wayland session should open a GUI polkit-agent asking you for password.

Running "mcc" from a tty should ask you for password at prompt and should run ncurses version of MCC.


Assigning to polkit maintainer.
(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
CC: (none) => alien
Assignee: bugsquad => mageia

Comment 2 Morgan Leijström 2020-11-12 01:03:12 CET
I also see this in cauldron, there with the default live user with no password.

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=27585
Whiteboard: (none) => MGA7TOO
Version: 7 => Cauldron

Comment 3 Nicolas Salguero 2020-11-12 08:56:27 CET
Hi,

For Mageia 7, if you install task-lxde-minimal, you also need to manually install a polkit client (for LXDE, it is lxpolkit).  The simplest way to get a fully working LXDE session is to install task-lxde.

For Cauldron, I did not check using a live ISO but, I did not have any problem in a Virtualbox VM that was installed with a normal x86_64 ISO because it installed task-lxde and not only task-lxde-minimal.

Best regards,

Nico.

CC: (none) => nicolas.salguero

Comment 4 Morgan Leijström 2020-11-12 09:59:16 CET
Hi Nico

Would it not be a good idea to have that dependency included in task-lxde-minimal instead of task-lxde?

Because in Mageia i.e MCC is a flagship component, and documentation - also for new users - expect it to just work to click it.

For using as fallback for another DE on a small device, full task-lxde is not wanted.


(In reply to Aurelien Oudelet from comment #1)
> Running "mcc" from a CLI while under a X/Wayland session should open a GUI
> polkit-agent asking you for password.

Have not tested in wayland

> > Running "mcc" from a tty should ask you for password at prompt and should
> run ncurses version of MCC.

That could be a workaround, but do not work:

When logged in as user "live" in either the text terminal found at i.e Ctrl-Alt-F2 or using LXTerminal, i get the no sesson for coocie error as seen in comment #0.
Comment 5 Nicolas Salguero 2020-11-12 10:14:59 CET
(In reply to Morgan Leijström from comment #4)
> Would it not be a good idea to have that dependency included in
> task-lxde-minimal instead of task-lxde?

task-lxde-8-3.mga8 move lxpolkit dependency from task-lxde to task-lxde-minimal
Comment 6 Morgan Leijström 2020-11-12 18:07:46 CET
Verified fixed in Cauldron on a live persistent system install:
task-lxde-minimal update pulls in lxpolkit.
MCC is started both from icon and by entering "mcc" as live user in lxterminal, it dont ask for user password, probably as intended for live user.

Version: Cauldron => 7
Whiteboard: MGA7TOO => (none)

Morgan Leijström 2020-11-12 18:09:07 CET

Whiteboard: (none) => Fixed in task-lxde-8-3.mga8

William Kenney 2020-11-12 18:26:58 CET

CC: (none) => wilcal.int

Morgan Leijström 2020-11-12 22:56:39 CET

See Also: https://bugs.mageia.org/show_bug.cgi?id=27585 => (none)

Comment 7 Morgan Leijström 2020-11-25 13:24:31 CET
Pinging this for mga7.
Comment 8 Nicolas Salguero 2020-11-25 13:37:57 CET
Suggested advisory:
========================

The updated packages fix a packaging issue:

lxpolkit should be a dependency of task-lxde-minimal rather than task-lxde otherwise, when installing only task-lxde-minimal, a polkit agent is missing to be able to launch Mageia Control Centre, for instance.

References:
https://bugs.mageia.org/show_bug.cgi?id=27574
========================

Updated packages in core/updates_testing:
========================
task-lxde-7-1.1.mga7
task-lxde-minimal-7-1.1.mga7

from SRPM:
task-lxde-7-1.1.mga7.src.rpm

Keywords: Triaged => (none)
Assignee: mageia => qa-bugs
Whiteboard: Fixed in task-lxde-8-3.mga8 => (none)
Status: NEW => ASSIGNED
Source RPM: (none) => task-lxde-7-1.mga7.src.rpm

Comment 9 Herman Viaene 2020-11-25 16:40:31 CET
MGA7-64 LXDE on Peaq C1011
This notebook had no LXDE before, so just seeing the title on this bug, I installed task-lxde from MATE, logged out, logged in to LXDE: OK (of course).
Installed the new version of the two packages, and only then read about the original problem, which of course I couldn't replicate anymore.
Anyway, logged out, logged in again, and all seems OK. File types tested like odt, ods, odp, odb, internet access, access to NFS-shares.
Waiting for others to confirm.

CC: (none) => herman.viaene

Comment 10 Morgan Leijström 2020-11-25 17:32:35 CET
Thank you Nicolas.
Yes Herman, at least you proved it did not get destroyed :)
I will try in a few hours mga7-32 on persistent USB stick.
Comment 11 Morgan Leijström 2020-11-25 22:28:34 CET
Fixed, thanks :)

Repeated old experiment, using 32 bit Xfce persistent live:
1) Full normal update. Only desktop ever installed is default Xfce.
2) Lnstalled task-lxde-minimal, disabled autologin, reboot
3) Loged into lxde
4) Found MCC icon nonresponsive
5) Enabled updates testing and updated task-lxde-minimal, which pulled in lxpolkit 
6) Logged out and in again
7) MCC icon works

Keywords: (none) => validated_update
Whiteboard: (none) => MGA7-32-OK
CC: (none) => sysadmin-bugs

Comment 12 Aurelien Oudelet 2020-11-27 09:51:22 CET
Advisory pushed to SVN.

Keywords: (none) => advisory
CC: (none) => ouaurelien

Comment 13 Mageia Robot 2020-11-27 21:16:05 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0236.html

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


Note You need to log in before you can comment on or make changes to this bug.