Bug 21027

Summary: Execute MCC from gui or terminal, it is not accepting root's and regular user's passwords.
Product: Mageia Reporter: Stephen Pettin <saptech>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: marja11, smelror, thierry.vignaud
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
URL: /usr/bin/drakconf
Whiteboard:
Source RPM: drakconf-13.15-1.mga6.src.rpm, used-polkit-agent CVE:
Status comment:
Attachments: MCC Journal log.txt info

Description Stephen Pettin 2017-06-05 00:57:12 CEST
Description of problem:
When trying to open MCC from gui or terminal, it is not accepting root's and reg user's password.
I was able to sign into a VT Console as root with root's password. Also able to sign in with a terminal as root.

I noticed I can sign into a terminal as root and run mcc from root's cli, but if I'm reg. user and type mcc in a terminal, the sign in box opens but does not accept user's password or root's password. Same from the Launcher Menu.

from cli as user, this message appears:
$ mcc
Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257.


Version-Release number of selected component (if applicable):
13.15-1.mga6

How reproducible:
Logged in as User, open a terminal or from the Launcher Menu execute MCC. At least when I do it, I get the error messages and no log in.


Steps to Reproduce:
1.Logged in as User
2.open a terminal or from the Launcher Menu
3.Menu execute MCC
Comment 1 Marja Van Waes 2017-06-05 09:59:10 CEST
the "Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.22.2/x86_64-linux-thread-multi/Glib/Object/Introspection.pm line 257." message is unrelated.

Please open a (separate) terminal/konsole, become root and, before reproducing this issue, run 

     journalctl -f > log.txt

and let it run until you reproduced it.

After that, attach log.txt to this bug report.

Keywords: (none) => NEEDINFO
CC: (none) => marja11
Assignee: bugsquad => mageiatools

Comment 2 Stig-Ørjan Smelror 2017-06-05 14:03:54 CEST
I had the same issue, but after the latest updates coming in, it worked as expected.

My workaround was to "sudo drakconf" *shrugs*

Cheers,
Stig

CC: (none) => smelror

Comment 3 Stephen Pettin 2017-06-05 16:23:36 CEST
Created attachment 9393 [details]
MCC Journal log.txt info
Comment 4 Stephen Pettin 2017-06-05 16:25:00 CEST
I uploaded the log.txt file after running mcc in a terminal.

Stig-Ørjan Smelror, I am updated as of Sunday. I'm not seeing any new updates as of this entry.

Thanks.
Comment 5 Stephen Pettin 2017-06-05 16:41:03 CEST
Now I just tested again with a different user and see something odd.

I have three users for Mga6:
saptech = first & main user, running Plasma5 since March '17.
debbie = second user, running Mate, which I installed Sunday.
speden = third user.

Since I've noticed this MCC issue. I just Switched User to debbie with Mate. I typed mcc in a terminal and the sign in box appeared and it asked for the superuser speden password, after typing in the password, mcc opens as normal.
This also works using GUI icon.

When I'm working as saptech, the mcc sign in box doesn't mention anything about superuser, it just ask show "password" to authenticate.


Using saptech with Plasma, I do not see the update notification but using debbie and running mcc, I chose the update system option and have some newer updates. I'll see what happens after the updates are ran.
Comment 6 Stephen Pettin 2017-06-05 16:58:39 CEST
I just tested again running saptech with Mate. MCC again asked for user speden password to authenticate, after typing the password in, mcc opens and run with no issues. Putting in root & saptech passwords does not work.

I just installed Mate yesterday (Sunday) and ran saptech using Mate today to test mcc.

This is very weird since saptech is the only user included in the /etc/sudoers file.
Comment 7 Manuel Hiebel 2017-06-05 17:35:10 CEST
I can confirm this issue in plasma. (without sudo installed)
Comment 8 Stig-Ørjan Smelror 2017-06-05 21:29:37 CEST
This is what I have installed using the kernel.org mirror.

$ rpm -qa | grep drakconf
drakconf-13.16-1.mga6
drakconf-icons-13.16-1.mga6

I see that you're referring to version 13.15.

I, too, am in the sudoers file.
Comment 9 Stephen Pettin 2017-06-11 00:33:02 CEST
I guess with the latest updates, drakconf is using the latest one.

$ rpm -qa | grep drakconf
drakconf-13.16-1.mga6
drakconf-icons-13.16-1.mga6
Comment 10 Stephen Pettin 2017-06-11 00:48:24 CEST
Opening a terminal and typing "su -" and typing in root's password, mcc does open normally.
Comment 11 Thierry Vignaud 2017-06-12 07:35:51 CEST
That's not a drakconf issue but an issue with whatever polkit agent you're using.

Source RPM: drakconf-13.15-1.mga6.src.rpm => drakconf-13.15-1.mga6.src.rpm, used-polkit-agent
CC: (none) => thierry.vignaud

Comment 12 Stephen Pettin 2017-06-12 16:18:08 CEST
$ ps aux | grep polkit
polkitd   2879  0.0  0.3 384816 12340 ?        Ssl  Jun10   0:02 /usr/lib/polkit-1/polkitd --no-debug

root      9305  0.0  0.0  79636  3288 ?        S    Jun10   0:00 /usr/lib/polkit-1/polkit-agent-helper-1 speden

saptech  24527  0.0  0.4 611952 17296 ?        Sl   Jun10   0:01 /usr/libexec/polkit-kde-authentication-agent-1

saptech  26209  0.0  0.0  12296   908 pts/0    S+   09:09   0:00 grep --color polkit


What I'm noticing from the above command is root showing user speden at the end. 
That is the password that works instead of root's password.

Should it be root instead of speden? If so, how can I change it? The current user as of this entry is logged in as saptech, my main user.
Comment 13 Stephen Pettin 2017-06-28 17:57:41 CEST
What I've found out from alf in the mga's forums, if a user is in the wheel group then mcc will ask for that user's password. The three users I have, speden is the only one in the wheel group. What happens if I remove the wheel group, will mcc want root's password?

I guess it solves the problem I'm having anyway.
Comment 14 Marja Van Waes 2021-07-06 17:31:11 CEST
(In reply to Stephen Pettin from comment #13)
> What I've found out from alf in the mga's forums, if a user is in the wheel
> group then mcc will ask for that user's password. The three users I have,
> speden is the only one in the wheel group. What happens if I remove the
> wheel group, will mcc want root's password?

Did you try?
> 
> I guess it solves the problem I'm having anyway.


I doubt this bug is still valid for anyone. Is it?
Comment 15 sturmvogel 2022-08-12 15:23:34 CEST
This bug was filed against Mageia 6 which is EOL since Sep 2019. No response to Marja's comment 14.

Closing as OLD.

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