# SLES11: shutdown without root password

**URL:** <https://forums.suse.com/t/sles11-shutdown-without-root-password/26441>\
**Category:** SLES Virtualization\
**Created:** [December 2, 2014, 3:37pm UTC](https://forums.suse.com/t/sles11-shutdown-without-root-password/26441 "2014-12-02T15:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [December 2, 2014, 3:37pm UTC](https://forums.suse.com/t/sles11-shutdown-without-root-password/26441/1 "2014-12-02T15:37:52Z")

</div>

Hi,

there is a SLES11 as KVM-Guest. Each time I select ‘Shutdown guest’ from KVM  
menu, the server shows an message that the server wil be shutdown in 60  
seconds. After this time I get an Window which asks for the root password.  
I want the server shutdown via KVM without any questions.

OK, I can use an ssh login and shutdown, but …

Any hints?

Bernd

PS: libvirtd-guestd is installed

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [December 2, 2014, 3:51pm UTC](https://forums.suse.com/t/sles11-shutdown-without-root-password/26441/2 "2014-12-02T15:51:08Z")

</div>

> [@](#):
>
> On Tue 02 Dec 2014 01:37:52 PM CST, Bernd wrote:
> 
> Hi,
> 
> there is a SLES11 as KVM-Guest. Each time I select ‘Shutdown guest’  
> from KVM menu, the server shows an message that the server wil be  
> shutdown in 60 seconds. After this time I get an Window which asks for  
> the root password. I want the server shutdown via KVM without any  
> questions.
> 
> OK, I can use an ssh login and shutdown, but …
> 
> Any hints?
> 
> Bernd
> 
> PS: libvirtd-guestd is installed

Hi  
YaST → /etc/sysconfig editor and look in the displaymanager section  
for DISPLAYMANAGER\_SHUTDOWN and change to all.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [February 13, 2015, 12:19pm UTC](https://forums.suse.com/t/sles11-shutdown-without-root-password/26441/3 "2015-02-13T12:19:33Z")

</div>

malcolmlewis wrote on Dienstag, 2. Dezember 2014 14:51 in  
suse.support.server.virtualization :  
[color=blue]

> On Tue 02 Dec 2014 01:37:52 PM CST, Bernd wrote:  
> [color=green]
> 
> > Hi,
> > 
> > there is a SLES11 as KVM-Guest. Each time I select ‘Shutdown guest’  
> > from KVM menu, the server shows an message that the server wil be  
> > shutdown in 60 seconds. After this time I get an Window which asks for  
> > the root password. I want the server shutdown via KVM without any  
> > questions.
> > 
> > OK, I can use an ssh login and shutdown, but …
> > 
> > Any hints?
> > 
> > Bernd
> > 
> > PS: libvirtd-guestd is installed[/color]
> 
> Hi  
> YaST → /etc/sysconfig editor and look in the displaymanager section  
> for DISPLAYMANAGER\_SHUTDOWN and change to all.  
> [/color]

Hi, sorry for the late response but there where other time consumers 😉

Unfortunately, this is not the solution. It change not the behavior. I have  
to edit the file /etc/polkit-default-privs.local and insert the lines:

org.freedesktop.hal.power-management.shutdown yes:yes:yes  
org.freedesktop.hal.power-management.shutdown-multiple-sessions yes:yes:yes  
org.freedesktop.consolekit.system.stop yes:yes:yes  
org.freedesktop.consolekit.system.stop-multiple-users yes:yes:yes  
org.freedesktop.consolekit.system.restart yes:yes:yes  
org.freedesktop.consolekit.system.restart-multiple-users yes:yes:yes

Afterwards run set\_polkit\_default\_privs

This allow to shutdown a system running in runlevel 5 to shutdown.

BUT ONLY if there is somebody logged in on tty0. Wtf?

If tty0 shows the graphical login screen, I get a message window on tty0  
that gdm-simple-greeter.desktop is still running. The dialog waits for a  
manual choice and the shutdown stucks again :-{

/var/log/messages shows:  
gnome-session[4042]: WARNING: Client ‘/org/gnome/SessionManager/Client4’ fa  
iled to reply before timeout  
gnome-session[4042]: WARNING: Unable to find desktop file ‘gdm-simple-greet  
er.desktop’: Valid key file could not be found in search dirs  
gnome-session[4042]: WARNING: Unable to find desktop file ‘gnome-gdm-simple  
-greeter.desktop.desktop’: Valid key file could not be found in search dirs

Any hints?

Bernd
