muskt wrote: Sun Aug 31, 2025 7:49 pm
...
...I have absolutely no idea how to do it. If it works, great.
...
I'm not sure if you're asking how to remove all the password popup windows from GUI applications requiring elevated privileges or if you're only asking if it can be made as an option in MX Tools (MX Tweak?). Regardless, to eliminate the password popup windows, I think the below will (should?) do what you're looking for.
It tested fine for me using MX-23.6 Xfce on a downloaded ISO file as well as on an installed test installation so that I could test rebooting it. That was done to ensure a reboot would be problem-free, and as expected, everything worked fine and dandy.
Note that the method presented here will only remove the password popups for GUI applications requiring elevated privileges. It will NOT eliminate the need for elevated privileges (sudo) when using the Terminal. That can certainly be done and it is easy to do. For that the
/etc/sudoers file will need to be edited using
sudo visudo but that is not what the Original Poster asked for, so I will not comment further.
You never gave which version of MX Linux you're using so here is the solution to MX-19.4, MX-21.3, and MX-23.6 - all Xfce. If you are using something other than Xfce then I cannot help since I only use Xfce.
For MX-23.6 Xfce
The below is how to remove the password popups in MX-23.6 Xfce. (Note that a quicker way that eliminates the below four steps follows below.)
1. In Thunar
as root, go to
/etc/polkit-1/rules.d/
2. In the
rules.d directory, create a file and name it
49-nopasswd_global.rules (it does NOT need to be executable)
3. Add the text from the below code window to the newly created file in Step 2. IMPORTANT: change
UserName to the User Name that you use, keeping it inside the double-quotes.
4. Save (the effect is immediate).
Code: Select all
/* Allow members in "UserName" group to execute any actions without password authentication. */
polkit.addRule(function(action, subject) {
if (subject.isInGroup("UserName")) {
return polkit.Result.YES;
}
});
This Screenshot shows the newly created file in a red rectangle in root Thunar:
Thunar_root_no_passwords_global_rules.png
========================================================================
An easier way to create the above file, eliminating the four steps entirely, is to just run the command in the following code window.
IMPORTANT: Ensure that you change the User Name
Demo used in this example to your User Name. There are two places; the first is the comment line, the second is on the "if" line of the code. If that line does not have your User Name then it will not work. Also remember to keep the User Name inside the two double-quotes. The empty line at the bottom of the file is intentional.
Code: Select all
sudo tee /etc/polkit-1/rules.d/49-nopasswd_global.rules <<!
/* Allow members in "Demo" group to execute any actions without password authentication. */
polkit.addRule(function(action, subject) {
if (subject.isInGroup("Demo")) {
return polkit.Result.YES;
}
});
!
When pasting the above command into the Terminal, a warning message will appear (see below Screenshot). It is okay to ignore the warning. The reason for the warning message is because the command has at least one "Enter" character, and several are necessary for file to be created.
This is also a good opportunity to confirm that the correct User Name is being used.
Just accept it by clicking on "Paste" and then press "Enter" to run the command.
Terminal_warning_paste_command_w-CR-LF.png
========================================================================
The following applications were tested after the above change and all of them worked fine with NONE OF THEM producing any password popup window prompts.
- GParted
- LightDM GTK+ Greeter settings (also tested changing a setting)
- MX Package Installer (MXPI - also tested installing a package)
- Synaptic
- Firewall configuration
- Disk Manager
- Thunar > R-Click > select “Open root Thunar here”
- FeatherPad as user > edit a file owned by root > save
- MX Updater
- MX Snapshot
- MX Tweak > Other tab > change “Password for administrative tasks”
========================================================================
For MX-21.3 and MX-19.4 both Xfce
The method shown above for MX-23 Xfce will NOT work in MX-19 or MX-21. For those two versions, do the following:
1. Using root Thunar, go to
/var/lib/polkit-1/localauthority/50-local.d/
2. In the
50-local.d directory, create a file and name it whatever you want, as long as it has a
.pkla extension, e.g.
disable_gui_root_passwords.pkla (remember, do not use any spaces in this file name). Also, this file does not need to be executable.
3. Enter the below text in the newly created (Step 2) file. IMPORTANT: The below example uses
Demo for the file name. Remember to change "Demo" to whatever your User Name is.
Code: Select all
[Disable GUI root password requirement]
Identity=unix-user:Demo
Action=*
ResultActive=yes
4. Save. The change works immediately so there is no need to reboot or log out/in.
I tested all of the above and everything works for me. Some of the above is sourced from
https://ubuntuhandbook.org/index.php/20 ... on-ubuntu/ "Disable Password Authentication Popups in Ubuntu 24.04" last updated 21 September 2024. Even though it says it's for Ubuntu 24.04, it works fine in MX Linux.