01-02-2017, 05:57 AM
[member=2]Jerry[/member],
I have yet another tweak to propose for Lite Tweaks collection; Kiosk Mode. Something basic to allow administrators to disable the options to Shutdown, Restart, Suspend and Hibernate the computer for regular users accounts.
Cases where this might be convenient:
In my own experience, my wife decided to shutdown a VM where I was developing and testing few things that I didn't save before stepping away from it. You can imagine my surprise when I came backĀ and found out that the VM was off and I hadn't saved my messy work :o
She was actually using her own account and not mine so she didn't "see" I was actually working on that VM. To prevent that from happening again (because she uses the same VM I use since I like to hear from her feedback - our VMs are hosted and shared in a VMWare Hypervisor on the network), I disabled her ability to shutdown, restart, Suspend or Hibernate the machine... something similar to this:
![[Image: t4kZIf3.png]](http://i.imgur.com/t4kZIf3.png)
![[Image: PTbVRXq.png]](http://i.imgur.com/PTbVRXq.png)
![[Image: A3PbSBu.png]](http://i.imgur.com/A3PbSBu.png)
While it doesn't fully prevent users from shutting down (e.g: user can force a reboot using the Terminal), at first sight the option isn't really available to restart the machine. I have to research how we can fully prevent regular users from shutting down even from terminal. I've done so in the past with Ubuntu polkit but I don't remember out of the top of my head how to do it.
I have yet another tweak to propose for Lite Tweaks collection; Kiosk Mode. Something basic to allow administrators to disable the options to Shutdown, Restart, Suspend and Hibernate the computer for regular users accounts.
Cases where this might be convenient:
In my own experience, my wife decided to shutdown a VM where I was developing and testing few things that I didn't save before stepping away from it. You can imagine my surprise when I came backĀ and found out that the VM was off and I hadn't saved my messy work :o
She was actually using her own account and not mine so she didn't "see" I was actually working on that VM. To prevent that from happening again (because she uses the same VM I use since I like to hear from her feedback - our VMs are hosted and shared in a VMWare Hypervisor on the network), I disabled her ability to shutdown, restart, Suspend or Hibernate the machine... something similar to this:
![[Image: t4kZIf3.png]](http://i.imgur.com/t4kZIf3.png)
![[Image: PTbVRXq.png]](http://i.imgur.com/PTbVRXq.png)
![[Image: A3PbSBu.png]](http://i.imgur.com/A3PbSBu.png)
While it doesn't fully prevent users from shutting down (e.g: user can force a reboot using the Terminal), at first sight the option isn't really available to restart the machine. I have to research how we can fully prevent regular users from shutting down even from terminal. I've done so in the past with Ubuntu polkit but I don't remember out of the top of my head how to do it.
https://unlockforus.com
Sorry for seeming stupid and preferring Linux - I just don't know any better.




![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: 0op1GNe.png]](https://i.imgur.com/0op1GNe.png)
![[Image: LgJ2mtP.png]](https://i.imgur.com/LgJ2mtP.png)
![[Image: vLZcFUE.png]](https://imgur.com/vLZcFUE.png)
![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg)
![[Image: QAshT2m.png]](http://i.imgur.com/QAshT2m.png)
![[Image: aV9f55D.png]](http://i.imgur.com/aV9f55D.png)