Gentoo Archives: gentoo-user

From: Raffaele BELARDI <raffaele.belardi@××.com>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: RE: [gentoo-user] prevent users from shutting down while other users logged in
Date: Thu, 30 Apr 2020 09:19:24
Message-Id: AM0PR10MB2436AFFB5A103D7C9F6D256EF7AA0@AM0PR10MB2436.EURPRD10.PROD.OUTLOOK.COM
In Reply to: Re: [gentoo-user] prevent users from shutting down while other users logged in by Neil Bothwick
1 > > Basically I'd like that:
2 > > - if there is more than one user logged in, either locally via lighdm
3 > > or remotely via SSH, the shutdown XFCE button is grayed out. Once all
4 > > users except one have logged out, the button is again available
5 >
6 > Can you configure the shutdown/reboot command called by XFCE? If so, you
7 > can set it to a script that checks whether anyone else is logged in before
8 > either executing the shutdown or displaying a "Daddy's using the computer"
9 > dialog.
10
11 I was hoping for a 'system' level solution. I think it was consolekit that, when a user tried to shutdown while another user was logged presented a window asking for root password to execute the command. (ESC would let it continue and do the shutdown anyway, so it was not really working). I'll go for the manual way.
12
13 Thanks,
14
15 Raffaele

Replies

Subject Author
Re: [gentoo-user] prevent users from shutting down while other users logged in Michael <confabulate@××××××××.com>
Re: [gentoo-user] prevent users from shutting down while other users logged in Neil Bothwick <neil@××××××××××.uk>