Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@darkxanter
Created August 28, 2022 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkxanter/575f200c6e2206f6a77c236bca06a8ba to your computer and use it in GitHub Desktop.
Save darkxanter/575f200c6e2206f6a77c236bca06a8ba to your computer and use it in GitHub Desktop.
Allow user to manage units on Ubuntu
cat /etc/polkit-1/localauthority/50-local.d/54-manage-units.pkla
[systemd]
Identity=unix-user:deploy
Action=org.freedesktop.systemd1.manage-units
ResultAny=yes
ResultInactive=yes
ResultActive=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment