# Shotdown via power button on Login Screen

**URL:** <https://forums.suse.com/t/shotdown-via-power-button-on-login-screen/23711>\
**Category:** SLES Hardware\
**Created:** [March 10, 2013, 8:38pm UTC](https://forums.suse.com/t/shotdown-via-power-button-on-login-screen/23711 "2013-03-10T20:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henPiters](https://avatars.discourse-cdn.com/v4/letter/h/cc9497/32.png) [@henPiters](https://forums.suse.com/u/henPiters)\
**Post date:** [March 10, 2013, 8:38pm UTC](https://forums.suse.com/t/shotdown-via-power-button-on-login-screen/23711/1 "2013-03-10T20:38:19Z")

</div>

Hi everyone,

i want to shutdown my server when i press the power button, also  
if the loginscreen is shown.

If a user is logged in, it works (but have to wait for 60sec before shutdown starts).  
Is there any way to shutdown on press when i am at the login screen?

(I have no extra monitor for the server and at the moment i am doing shutdown  
via Remote which works but therefore i always need a connected client).

Does anyone have an idea what i can do?

---

<div class="post-metadata">

**Author:** ![KEVIN1](https://avatars.discourse-cdn.com/v4/letter/k/a9adbd/32.png) [@KEVIN1](https://forums.suse.com/u/KEVIN1)\
**Post date:** [March 11, 2013, 2:28am UTC](https://forums.suse.com/t/shotdown-via-power-button-on-login-screen/23711/2 "2013-03-11T02:28:35Z")

</div>

henPiters wrote:  
[color=blue]

> Hi everyone,
> 
> i want to shutdown my server when i press the power button, also  
> if the loginscreen is shown.[/color]

That can be dangerous if others have physical access to the server.  
/Anyone/ could shut it down!  
[color=blue]

> If a user is logged in, it works (but have to wait for 60sec before  
> shutdown starts).  
> Is there any way to shutdown on press when i am at the login screen?
> 
> (I have no extra monitor for the server and at the moment i am doing  
> shutdown  
> via Remote which works but therefore i always need a connected  
> client).
> 
> Does anyone have an idea what i can do?[/color]

You don’t always need a connected client, you just need access to a  
computer that has SSH installed on it. If you use SSH (PuTTY if you do  
it from a Windows Workstation) just login to your server and enter (as  
root): shutdown -h now

If you have a monitor near your server that is used on another  
computer, you could attach a KVM switch to the two machines and share  
the keyboard, mouse, and monitor.

–  
Kevin Boyle - Knowledge Partner  
If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
