I've been noticing that practically every time I bootup Ubuntu or shut it down, this job appears:
A stop job is running for: LSB: Privilege escalation detection system [0s / 30s]
It's been annoying me because it makes me wait at least 30 seconds to start up or shut down my computer.
So, my question is: what is this, and how can I get rid of it?
If it helps, here is the output of systemctl list-units | grep -i Privilege
:
username@hostname:~$ systemctl list-units | grep -i Privilege
ninja.service loaded active running LSB: "privilege escalation detection system"
polkitd.service loaded active running Authenticate and Authorize Users to Run Privileged Tasks
username@hostname:~$
grep -r escalation /lib/systemd/*
to find out which service is described as "Privilege escalation system" (I couldn't find one), then see if you can (and should) remove it from your system.systemd-resolve-host
.systemctl list-units | grep -i Privilege
(orsystemctl list-units | grep LSB
etc.)sudo apt remove ninja
. That is your privilege escalation detection service.