On Mon, 08 Sep 2025 22:27:55 +0930 Tim <ignored_mail...@yahoo.com.au> wrote:
> On Mon, 2025-09-08 at 14:40 +0200, Franta Hanzlík via users wrote: > > I thought removing or disabling the OFF button would be a fairly > > simple and obvious thing to do. > > You would think so, too... > > Half the problem is that *that* part of the menu is whole system rather > than per-person (i.e. people can edit the list of applications showing > in *their* menu), but other menus are meant to be everyone sees the > same stuff. > > There's policy editors which can be used to set rules on who can use > those shutdown functions, but that does not remove the actual menu > listing. Like what happens when two people are logged in at once, if > one of them tries to shutdown (for instance) it gets blocked. > > There's some logic in the way that *could* be done. The first person > could tell the system to shutdown, and it won't while the other one's > still using it. Then when the second person tells the system it can > shut down, it could follow through and do it. But it's not queueing up > shutdown commands, it's just that the last person to leave the room > will be the one switching things off. Also logical, and far easier to > understand and deal with. > > There were kiosk mode set-ups in the past, where the options for what > certain people could do was quite limited. But that's more guest-mode > oriented, where each person using the system doesn't have an account on > it. > > You'd think there'd be office-modes, or system-server modes, where you > could easily blacklist a variety of options (such as shutdown and > reboot) from all but specific users. > -- Thanks! Exactly, my goal is not primarily to remove the SHUTDOWN item from the menu, but to prevent the machine from shutting down. If it is possible to accomplish this using some policy rules (in Linux there is probably only polkit for this), then I consider it a very good solution to the problem. But I havn't found how to set up so that only certain users/group can perform shutdown/suspend/restart of the system. Or how to specify the users/group who cannot do this. -- Franta Hanzlik -- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue