You are not logged in.

#1 2006-04-30 21:40:45

WigglerAway
Member
Registered: 2006-04-30
Posts: 14

Shutting down with Slim login manager

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

#2 2006-04-30 21:48:00

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Shutting down with Slim login manager

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

#3 2006-04-30 22:23:40

whargoul
Member
From: Odense, Denmark
Registered: 2005-04-04
Posts: 546

Re: Shutting down with Slim login manager

elasticdog wrote:

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

#4 2006-05-01 23:38:53

WigglerAway
Member
Registered: 2006-04-30
Posts: 14

Re: Shutting down with Slim login manager

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

#5 2006-05-02 01:09:27

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Shutting down with Slim login manager

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

#6 2006-05-02 13:01:20

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 419

Re: Shutting down with Slim login manager

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

Board footer

Powered by FluxBB