You are not logged in.
Pages: 1
Does anyone know how to shutdown/restart with slim? The readme in the sources tells you to enter halt, however I am simply prompted for a password. I'm completely confused, it must be something easy :?
Offline
If I recall correctly, you can enter a whole bunch of special usernames such as halt, reboot, exit, etc. and then you should enter the root password to actually execute it. Don't quote me on that though, since I don't currently use Slim...
Offline
If I recall correctly, you can enter a whole bunch of special usernames such as halt, reboot, exit, etc. and then you should enter the root password to actually execute it. Don't quote me on that though, since I don't currently use Slim...
That's correct. But I haven't tried with sudo to see if that works, so you dont have to be prompted for password.
Arch - It's something refreshing
Offline
Thanks, it does work. When I saw the password box I assumed it thought it was a username. Hmm, not very practical needing root password to shutdown a desktop.
Offline
That can probably be solved by adjusting permissions...I assume SLiM trys to run it as root, but if you were to make the <code>/sbin/shutdown</code> have executable permissions to everyone, perhaps it would work? There's probably a better way though, perhaps someone with more SLiM experience can chime in...
Offline
As the commands are defined in /etc/slim.conf, i would consider it to be possible to change it to something like that
# Commands for halt, login, etc.
halt_cmd "sudo /sbin/shutdown -h now"
reboot_cmd "sudo /sbin/shutdown -r now"
But I did not try it or know if it works...
Offline
Pages: 1