Post History
I managed to disable the feature via polkit. To do this I created two policy files: /etc/polkit-1/localauthority/50-local.d/50-disable-linger-self.pkla [disable loginctl linger self] Identity=un...
Answer
#1: Initial revision
I managed to disable the feature via polkit. To do this I created two policy files: _/etc/polkit-1/localauthority/50-local.d/50-disable-linger-self.pkla_ ```ini [disable loginctl linger self] Identity=unix-user:* Action=org.freedesktop.login1.set-self-linger ResultAny=no ResultInactive=no ResultActive=no ``` _/etc/polkit-1/localauthority/50-local.d/60-disable-linger-user.pkla_ ```ini [disable loginctl linger user] Identity=unix-user:* Action=org.freedesktop.login1.set-user-linger ResultAny=no ResultInactive=no ResultActive=no ``` This effectively disables the ability for regular users. ```console gerald@node:~$ loginctl enable-linger gerald Could not enable linger: Access denied ```