#Polkit

2025-12-30

Linux permissions go beyond chmod. Learn how groups, sudo, and modern policy systems control services, reboot, and system-level authority.

More details here: ostechnix.com/linux-permission

#LinuxPermissions #LinuxPrivileges #LinuxSecurity #Linuxadmin #Linuxcommands #Linuxhowto #sudo #Polkit #Systemd

This is how to make the “Install pending software updates” checkbox go away in GNOME

If you’re using GNOME, and when you tell it you want to shut down or reboot your system it pops up a confirmation dialog with an “Install pending software update” checkbox in it, and the checkbox is checked by default, and you want to make that checkbox go away or at least be unchecked by default, then you’ve come to the right place.

There’s no perfect way to do this. Below I talk about two imperfect solutions that are available. If you think there should be an easier way, feel free to weigh in here. The GNOME developers are skeptical that anyone wants or needs this, but maybe if enough people ask for it they will reconsider.

Imperfect solution one: Open the preferences for the GNOME Software app and change “Software Updates” there from “Automatic” to “Manual”. Caveats:

  • This may only work on systems, such as Fedora-based systems, where PackageKit uses a separate update cache from the system. On APT-based systems (Debian, Ubuntu, and the like), where it appears that PackageKit uses the same update cache as the underlying APT system (as it should!), then when the updates are downloaded outside of GNOME Software, you may still see the checkbox.
  • If there were already updates downloaded before you switched from Automatic to Manual, you will get the checkbox. You need to install those updates (either through GNOME Software or with DNF or APT or whatever) and then refresh the GNOME Software Updates tab to make them go away there.
  • If you check for updates in the GNOME Software app manually and then click the Download button, you will probably get the checkbox the next time you try to shut down or restart.

Imperfect solution two: Create the file /etc/polkit-1/rules.d/99-disable-offline-update.rules, owned by user “root” and group “polkitd”, with the following contents:

polkit.addRule(function(action, subject) {
 if ((action.id == "org.freedesktop.packagekit.trigger-offline-update")) {
  return polkit.Result.NO;
 }
});

Caveat: This will disable all attempts to trigger offline updates, not just the checkbox that shows up when you try to shutdown or restart your system. This means, for example, that you won’t be able to trigger “Restart and install…” updates from inside the GNOME Software app either.

#GNOME #PackageKit #Polkit
2025-11-02

I hate debugging issues related to #polkit and #systemd. Neither of them generates logmessages when shit fails and for neither of them you get useful error messages.

And you also can't just strace systemd without first setting up a minimalisting test system as otherwise you'll obviously never find what you're looking for in all of the output spam...

It could be so easy if either of these would log more than just "Access denied" (when executed as root at least...)

Benny Powers 🇮🇱🦁bp@social.bennypowers.com
2025-10-24

🚀 quickshell-polkit-agent v2.0.0 is out!

Major architectural overhaul: switched from proactive FIDO detection to a PAM-reactive model. The agent now responds to PAM prompts instead of trying to control auth flow.

What's new:
• GDM-inspired authentication state machine
• 22 integration tests with 100% pass rate
• Podman-based E2E testing infrastructure
• Rich error handling & state tracking APIs
• Performance optimizations (<2ms state transitions)

🔧 Breaking changes:
• Removed auto-FIDO logic (now handled by PAM/pam_u2f)
• Simplified state machine (no more TRYING_FIDO states)
• Cleaner authentication flow: IDLE → INITIATED → WAITING_FOR_PASSWORD → AUTHENTICATING → COMPLETED

🐛 Fixed use-after-free bugs, race conditions, and timeout issues

github.com/bennypowers/quickshell-polkit-agent/releases/tag/v2.0.0

#Linux #Polkit #Qt6 #Authentication #FIDO2 #Quickshell #Gentoo

Philip Withnallpwithnall
2025-10-14

Today’s side quest involved allowing polkit policy files to be validated at build time using `xmllint`: github.com/polkit-org/polkit/p

2025-08-07

A couple notable related writeups

A great primer on #dbus and #polkit that clearly shows how brittle they are
u1f383.github.io/linux/2025/05

An amazing #linux #kernel #vulnerability research and #exploit development writeup
ssd-disclosure.com/ssd-advisor

Nutzt hier jemand einen kartenleser unter unbuntu linux?

Und das funkzjoniert nach dist-upgrade nicht mehr? Das hier hilft vielleicht.

#DirkHagedorn #Fail #Link #Linux #polkit #Ubuntu

2025-07-18

Am I missing some #environmentVariable when running #dnf with #run0, it throws at me 203 #exitcode

I checked the run0 and dnf #manpage, but found nothing specific :/

Anyway, run0 still is better than #sudo, as i like having #gnome show me #polkit password dialog, and I know then at least I will enter that password into correct application.

#linux #fedora #systemd

:cc_led: Photonic Fae 🧚‍♀️photonicfae@cathode.church
2025-06-26

sighs

The other day #PolKit updated or something related to it did on our #Gentoo installation and now our backlight asks for the root password whenever we want to lower or increase the brightness with the keyboard keys when it didn't before.

To be clear we can find nothing of use on the wiki etc, we have looked.

Can any of y'all help please?

#Linux #LinuxHelp #LinuxAdvice #AskFedi #LinuxSupport

Diego Córdoba 🇦🇷d1cor@mstdn.io
2025-06-24

2/3

* También depende del entorno gráfico: #gvfs (#gnome, #xfce) o el equivalente en #kde (creo que es #kio), que suelen montar en /run/media.

* Configuraciones personalizadas de #polkit pueden hacer que los usuarios puedan montar discos en diferentes ubicaciones.

* El mismo udisks2 permite cambiar configuraciones para montar automáticamente en otros directorios.

* Y por supuesto, el montaje manual y uso de /etc/fstab puede permitirnos montar directorios no estándar.

👇

R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou:rl_dane@polymaths.social
2025-05-18

@berryman

I've daily-driven #OpenSuSE #Tumbleweed in the past. A coupe times, actually.

No real major complaints. Some issues were that the YaST-based installer was kind of obtuse (e.g., very easy to miss the option to set the hostname). I'm not one to hate on YaST. I don't need my configuration tool / systems-management tool to be all pretty or written in Flutter or whatever. But the installer was kind of obtuse, if featureful.

My biggest complaint is that they don't set up #PolKit out of the box, and you're expected to use the root password for things like setting up printers in the GUI. Not to be too snippy, but that was unacceptable in 2005, and it's crazy wrong-headed in 2025. But I know there's a way to set that up, so I need to look into it.

I'm very interested in OpenSuSE #SlowRoll. If that comes out in the next few months, that could be an awesome contender.

So, yeah, actually, thanks for reminding me to look into OpenSuSE some more. :neocat_floof_happy:

R.L. Dane :Debian: :OpenBSD: :FreeBSD: 🍵 :MiraLovesYou:rl_dane@polymaths.social
2025-02-11

@Lycoris

I want to try #OpenSuSE #Tumbleweed again. My only turn-off from it was that zypper is a little slow as a cli package manager goes (not a huge deal), and that they didn't have #PolKit enabled by default, so setting up things like your printer required using the root password, which is brain dead.

I really hope they have that last one fixed, because it's just arguably the wrong approach, and should be treated as a bug.

2024-10-20

anybody know of a #polkit authentication agent that lets you use a numpad like the #phosh passcode entry screen?

#mobian #linux #debian

Nik | Klampfradler 🎸🚲nik@toot.teckids.org
2024-08-22

TIL that #polkit rules are JavaScript and wtf?

Morten LinderudFoxboron@chaos.social
2024-07-30

Okay, what is the modern way to request a password or secret from the user in this day and age?

Pinentry and ssh-askpass is no go and I can't quite grok the dbus secret service from the polkit auth?

#Linux #dbus #polkit

2024-06-04

Herunterfahren und Neustart unter Ubuntu 22.04 deaktivieren:

Mit nur zwei Befehlen verhinderst du effektiv, dass Remote-Benutzer:innen einen virtuellen PC mit Ubuntu 22.04.4 LTS neu starten oder herunterfahren können.

andersgood.de/kurz-notiert/her

#SWEETGOOD #andersGOOD #Ubuntu #Polkit

Herunterfahren verhindern
2024-05-26

lxpolkit is one program which will allow you to run something which requires polkit. (such as #synaptic) Necessary for window managers / compositors which don't use a desktop environment, such as sway.

For synaptic using X Windows, you will also need to give root access to your server. Do this with xhost.

xhost SI:localuser:root

should do the trick. You may need this on Wayland as well, as synaptic interfaces with X.

#debian #linux #polkit

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst