Score:0

Disable Poweroff Button and poweroff via terminal in 22.04

md flag

i want to remove or disable the poweroff button for all users. And also the poweroff via terminal if possible. Or request the password to prevent an accidental poweroff. Is there an option for that?

Esther avatar
es flag
https://askubuntu.com/questions/193770/how-do-i-disable-the-on-off-button-on-my-notebook?rq=1 for your first request, it's old but might still work
TLinde avatar
md flag
I already tried that. Since its a VM that doesnt work unfortunately.
Esther avatar
es flag
what is a power button on a vm? or do you mean like in the system dashboard or something?
Esther avatar
es flag
https://askubuntu.com/questions/1248002/edit-ubuntu-20-04-power-off-logout-menu https://askubuntu.com/questions/1318113/how-to-disable-the-logout-button-while-keeping-the-possibility-to-power-off?rq=1 <- for disabling the power off button, https://askubuntu.com/questions/789058/how-to-make-sbin-shutdown-sbin-reboot-etc-require-sudo-again-in-16-04?rq=1 <- for requiring sudo for shutdown
TLinde avatar
md flag
Yes, i mean the reboot and shut down button in the dashboard (top right corner)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.