How to configure policykit to disable shutdown only if another user is logged in
I am trying to configure policykit to disable shutdown only if another user is logged in.
I have the file: /etc/polkit-
[Disable Shutdown, etc.]
Identity=
Action=
ResultAny=no
ResultInactive=no
ResultActive=no
Here, any user can log in, work, and shutdown. If the user simply logs out, and another logs in, then no user can shutdown (without invoking sudo).
If I change the above ResultActive to "yes", then any user can shutdown, even if another is logged in, i.e. the second user logs in via switch user.
How can I configure things so that any shutdown is only disabled if another user is logged in?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: