Logout

Share your ideas, questions or suggestions with us here.
Post Reply
udom
Posts: 1
Joined: Wed Oct 18, 2017 4:08 pm

Logout

Post by udom »

I love openbox. Seems there are fewer distros offering it all the time so I'm really happy to find it in Ghost. One small question, I'm trying to enable normal user to use a logout app. Tried various solutions without success. Which file do I edit to give normal user permissions to execute shutdown, reboot?
ASX
Posts: 988
Joined: Wed May 06, 2015 12:46 pm

Re: Logout

Post by ASX »

udom wrote:I love openbox. Seems there are fewer distros offering it all the time so I'm really happy to find it in Ghost. One small question, I'm trying to enable normal user to use a logout app. Tried various solutions without success. Which file do I edit to give normal user permissions to execute shutdown, reboot?
Hi,

you can use "sudo" or "doas", both can be configured to start specific commands (and specific users or groups) without requiring the root password
Check the respective manpages, and the related configuration files.

or, you can set the "suid" bit on a shell script that will execute shutdown, but it is considered bad practice (unsecure).

Pick your preferred one, depending on your requirements. ;)
Post Reply