Guest User

Untitled

a guest
May 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Allow alice to manage example.service;
  2. // fall back to implicit authorization otherwise.
  3. polkit.addRule(function(action, subject) {
  4. if (action.id == "org.freedesktop.systemd1.manage-units" &&
  5. action.lookup("unit") == "example.service" &&
  6. subject.user == "alice") {
  7. return polkit.Result.YES;
  8. }
  9. });
  10.  
  11. # game server commands
  12. Cmnd_Alias GAME_CMDS = /usr/bin/systemctl start <game service>, /usr/bin/systemctl stop <game service>
  13.  
  14. unprivileged_user ALL=(ALL) NOPASSWD: GAME_CMDS
Add Comment
Please, Sign In to add comment