Page 1 of 1
[Solved]Password prompts in MX Linux
Posted: Wed Apr 08, 2020 6:07 pm
by subluminal
After installing KDE and removing XFCE, synaptic isn't asking for any password. Same for konsole. MX package installer still asks for password. polkit-kde-agent-1 is installed and polkit-kde-authentication-agent-1 and polkitd are running.
How do I fix it so that normal behaviour resumes? This MX KDE is easily the fastest KDE I've ever used. So I would like to keep using it.
Any help would be much appreciated. Thanks.
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 6:22 pm
by subluminal
After moving /etc/sudoers.d/antixers to someplace else, the password prompts are back.
Does anyone know if moving that file will have any detrimental effect?
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 6:57 pm
by dolphin_oracle
konsole runs as regular user by default, so not sure what you mean there.
to check synaptic, try
and post any terminal output.
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 6:59 pm
by dolphin_oracle
subluminal wrote: Wed Apr 08, 2020 6:22 pm
After moving /etc/sudoers.d/antixers to someplace else, the password prompts are back.
Does anyone know if moving that file will have any detrimental effect?
are you talking about sudo prompts?
sudoers shouldn't have anything to do with synaptic launching. unless you were trying "sudo synaptic".
I haven't had any trouble with antixers under KDE. have you made any edits to it?
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 7:05 pm
by subluminal
Thanks for the replies.
By konsole, I meant no sudo prompts. Also removed synaptic.desktop file and edited synaptic-kde.desktop file to issue synaptic-pkexec command. Both issues are fixed by backing-up and then removing the /etc/sudoers.d/antixers file. Now everything is back to normal. But will moving the anitxers file cause any trouble in the future?
P.S made no edits to antixers file, simply removed it after backing it up in my data partition.
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 7:11 pm
by dolphin_oracle
it won't hurt anything on an installed system, but it might be problematic on live.
are you using Mx19 or 18?
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 7:23 pm
by subluminal
I'm using MX 19.1
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 7:26 pm
by dolphin_oracle
Can you post the antixers file?
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 7:42 pm
by subluminal
Code: Select all
# sudoers file.
%users ALL=(root) NOPASSWD: /sbin/halt
%users ALL=(root) NOPASSWD: /sbin/poweroff
%users ALL=(root) NOPASSWD: /sbin/reboot
%users ALL=(root) NOPASSWD: /sbin/blkid ""
%users ALL=(root) NOPASSWD: /sbin/fdisk.distrib
%users ALL=(root) NOPASSWD: /usr/bin/ceni
%users ALL=(root) NOPASSWD: /usr/local/bin/persist-config
%users ALL=(root) NOPASSWD: /usr/local/bin/persist-save
%users ALL=(root) NOPASSWD: /usr/sbin/minstall
%users ALL=(root) NOPASSWD: /usr/local/bin/antixsources.sh
%users ALL=(root) NOPASSWD: /usr/local/bin/connectshares.sh
%users ALL=(root) NOPASSWD: /usr/local/bin/disconnectshares.sh
%users ALL=(root) NOPASSWD: /bin/chvt
%users ALL=(root) NOPASSWD: /usr/local/bin/menu_manager.sh
%users ALL=(root) NOPASSWD: /usr/sbin/pm-hibernate
%users ALL=(root) NOPASSWD: /usr/sbin/pm-suspend
Defaults!/usr/local/bin/menu_manager.sh env_keep += "HOME"
Defaults !requiretty
Defaults !tty_tickets
%users ALL=(root) NOPASSWD: /usr/local/bin/update-default-desktop
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 8:22 pm
by dolphin_oracle
well that's looks correct, and the same I'm using with kde without issue.
I'm not sure what's up here.
Re: No password prompts after KDE install
Posted: Wed Apr 08, 2020 11:30 pm
by m_frank
subluminal wrote: Wed Apr 08, 2020 7:05 pm
:
By konsole, I meant no sudo prompts.
Also removed synaptic.desktop file and edited synaptic-kde.desktop file to issue synaptic-pkexec command.
Both issues are fixed by backing-up and then removing the /etc/sudoers.d/antixers file.
Now everything is back to normal.
But will moving the antixers file cause any trouble in the future?
:
Most of
/etc/sudoers.d/antixers is about allowing the specified commands to:
- Run without prompting for password,
- Still require the sudo prefix to the command,
- Still require the user to be a member of the sudo group
You'll see more password prompts on things like
halt,
poweroff,
reboot, etc.
Possibly a minor annoyance, at least when running from cli, but it may be more interesting when these commands are called up in the bowels of some GUI with no provision for password input.
Additional these 2 defaults may be of interest:
Code: Select all
Defaults !requiretty
Defaults !tty_tickets
In the case of
requiretty:
Code: Select all
$ man sudoers
:
requiretty If set, sudo will only run when the user is logged into a real tty.
When this flag is set, sudo can only be run from a login session
and not via other means such as cron(8) or cgi-bin scripts.
This flag is OFF by default.
:
Since the default is OFF, losing
Defaults !requiretty (which sets it OFF) should have no impact.
In the case of
tty_tickets:
Code: Select all
$ man sudoers
:
tty_tickets If set, users must authenticate on a per-tty basis. With this flag enabled,
sudo will use a separate record in the time stamp file for each tty.
If disabled, a single record is used for all login sessions.
This flag is ON by default.
Since the default is ON, losing
Defaults !tty_tickets results in separate time keeping by each terminal.
When using multiple terminals, you could be prompted for a password by sudo, even though you just entered one because that was on a different terminal.
To gauge the impact of removing
/etc/sudoers.d/antixers you should probably use:
Both with and without
/etc/sudoers.d/antixers, then analyze the differences.

Re: No password prompts after KDE install
Posted: Thu Apr 09, 2020 5:12 am
by subluminal
I'll put that file back where it was and see if the problems reoccur.
Re: No password prompts after KDE install
Posted: Thu Apr 09, 2020 5:52 am
by subluminal
After putting the antixers file back inside /etc/sudoers.d/ all password prompts stopped again. So I edited the file and erased this line as you suggested.
Now everything is as it should be. Password prompts in synaptic, and on each new terminal. Just as I like it. Thanks for the help.

Re: No password prompts after KDE install
Posted: Thu Apr 09, 2020 8:54 am
by m_frank
subluminal wrote: Thu Apr 09, 2020 5:52 am
:
So I edited the file and
erased this line
as you suggested.

I said
that?
I thought, that after quoting pertinent bits of the
sudoers man page, that I said:
m_frank wrote: Wed Apr 08, 2020 11:30 pm
To gauge the impact of removing
/etc/sudoers.d/antixers you should probably use:
Both with and without
/etc/sudoers.d/antixers, then analyze the differences.

Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 9:10 am
by subluminal
Sorry, forgot to mention. I did checkout sudo --list.
After putting antixers file back where it was, I got a whole bunch of commands which could be run w/o password. Same commands as in the file. Reboot, shutdown etc. Which is fine so I quoted John Lennon.
Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 9:15 am
by subluminal
Code: Select all
sudo --list
Matching Defaults entries for sayan on mx:
env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !requiretty
Runas and Command-specific defaults for sayan:
Defaults!/usr/local/bin/menu_manager.sh env_keep+=HOME
User sayan may run the following commands on mx:
(ALL : ALL) ALL
(root) NOPASSWD: /sbin/halt
(root) NOPASSWD: /sbin/poweroff
(root) NOPASSWD: /sbin/reboot
(root) NOPASSWD: /sbin/blkid \"\"
(root) NOPASSWD: /sbin/fdisk.distrib
(root) NOPASSWD: /usr/bin/ceni
(root) NOPASSWD: /usr/local/bin/persist-config
(root) NOPASSWD: /usr/local/bin/persist-save
(root) NOPASSWD: /usr/sbin/minstall
(root) NOPASSWD: /usr/local/bin/antixsources.sh
(root) NOPASSWD: /usr/local/bin/connectshares.sh
(root) NOPASSWD: /usr/local/bin/disconnectshares.sh
(root) NOPASSWD: /bin/chvt
(root) NOPASSWD: /usr/local/bin/menu_manager.sh
(root) NOPASSWD: /usr/sbin/pm-hibernate
(root) NOPASSWD: /usr/sbin/pm-suspend
(root) NOPASSWD: /usr/local/bin/update-default-desktop
(root) NOPASSWD: /usr/lib/mx-tweak/backlight-brightness
(root) NOPASSWD: /usr/bin/lsof
Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 10:24 am
by m_frank
subluminal wrote: Wed Apr 08, 2020 6:07 pm
After installing KDE and removing XFCE,
- synaptic isn't asking for any password.
- Same for konsole. (KDE's terminal emulator)
- MX package installer still asks for password.
:
How do I fix it so that
normal behaviour resumes?
:
subluminal wrote: Thu Apr 09, 2020 5:52 am
After putting the antixers file back inside /etc/sudoers.d/ all password prompts stopped again.
So I edited the file and erased this line
as you suggested.
Now everything is as it should be. Password prompts in synaptic, and on each new terminal. Just as I like it.
Thanks for the help.
I'm glad that you were able to customize your installation to your liking, desires, and requirements.
I am curious about something.
Based on your forum join date of Tue, 15 Oct 2019, and this posting, I assume (shame on me?):
- You've been running MX at least a little bit over the intervening 5-ish months,
- You recently installed KDE,
- For you, "normal behaviour" is each terminal doing separate password prompt time keeping.

Were you bothered by the configured MX-Linux sudo password prompting behavior before installing KDE?
(Note: MX is configured to have a common timer per user applied across all terminals)
Because I don't think that the KDE installation changed this setting, although the environmental change may have made you more sensitive to the MX behavior vs other distros.
Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 10:43 am
by subluminal
Yes I was bothered by lack of prompt in XFCE before as well. It's kind of funny because I see in the internet many people in countless forums asking how to disable prompts.
My setup is usually 2 distros dual boot. One always arch based (Currently Manajaro KDE) and one always debian based (currently MX). This is the second time I installed MX. The first time I went back to vanilla debian because of 2 reasons. First, I am more familiar with vanilla debian. Second, I am not a big fan of XFCE. Now though, having setup KDE just the way I want in MX, it is running better than even KDE Neon or vanilla Debian KDE. So plan to stick with it.
I'm currently also trying to make a MX KDE respin but a lot of MX tools are deeply intertwined with XFCE which is causing problems. I don't have enough programming skills to rewrite MX Tools in Qt for KDE removing all XFCE related codes.
Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 12:01 pm
by m_frank
subluminal wrote: Thu Apr 09, 2020 10:43 am
Yes I was bothered by lack of prompt in XFCE before as well.
It's kind of funny because I see in the internet many people in countless forums asking how to disable prompts.
Ah, I thought so.
You may want to consider editing the base posting title to clarify the impression that KDE install "caused" disabling of password prompts. Unhappily, I don't have any succinct suggestions.
This was really an issue of the "MX-Linux default sudo password prompting behavior".
Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 12:37 pm
by m_frank
subluminal wrote: Thu Apr 09, 2020 10:43 am
My setup is usually 2 distros dual boot. One always arch based (Currently Manajaro KDE) and one always debian based (currently MX). This is the second time I installed MX. The first time I went back to vanilla debian because of 2 reasons. First, I am more familiar with vanilla debian. Second, I am not a big fan of XFCE. Now though, having setup KDE just the way I want in MX, it is running better than even KDE Neon or vanilla Debian KDE. So plan to stick with it.
I've happily used KDE, starting with KDE 3.3.2 (MEPIS 3.3.1), ending with KDE 4.5.1 (Simply-MEPIS 11.0),
before migrating to MX with XFCE.
My first experience with XFCE was when I wanted a desktop for my FreeBSD 4.x system, don't remember which x, it's been a while.

Re: [Solved]No password prompts after KDE install
Posted: Thu Apr 09, 2020 12:53 pm
by m_frank
subluminal wrote: Thu Apr 09, 2020 10:43 am
I'm currently also trying to make a MX KDE respin but a lot of MX tools are deeply intertwined with XFCE which is causing problems. I don't have enough programming skills to rewrite MX Tools in Qt for KDE removing all XFCE related codes.
Actually, it's not so much XFCE, but an issue of GTK vs Qt.
No small undertaking, porting MX tools to Qt, but IIRC, the AppImage of MX-LUM is Qt based, and so is mx-live-usb-maker.
Re: [Solved]Password prompts in MX Linux
Posted: Thu Apr 09, 2020 1:10 pm
by subluminal
Oh yes, you're correct. The MX PackageInstaller is also written using Qt. But why does it not respect plasma dark theming? It still looks same as it did in xfce. What am i doing wrong? Most MX apps I have checked so far (I haven't checked them all) and also synaptic (which is GTK unless I'm mistaken) look strange(meaning light theme not the dark GTK theme that I setup in KDE settings manager). On the other hand, qbittorrent looks fine.
P.S. I know I digress from the topic but I'm curious.
Re: [Solved]Password prompts in MX Linux
Posted: Thu Apr 09, 2020 1:23 pm
by m_frank
Start a new topic, it's free.

Re: [Solved]Password prompts in MX Linux
Posted: Thu Apr 09, 2020 1:42 pm
by subluminal
Could be that synaptic, MX package installer and some other MX tools are launched as root and so doesn't get any theme applied to the GUI.
Re: [Solved]Password prompts in MX Linux
Posted: Thu Apr 09, 2020 3:03 pm
by m_frank
subluminal wrote: Thu Apr 09, 2020 1:42 pm
Could be that synaptic, MX package installer and some other MX tools are launched as root and so doesn't get any theme applied to the GUI.
More likely, that
root's theme is being applied?
You really should open a new topic.
