Bug 216915

Summary: In Local Security, Shutdown Behaviour didn't change gdm.
Product: [openSUSE] openSUSE 10.3 Reporter: Peng Wu <pwu>
Component: YaST2Assignee: Jiří Suchomel <jsuchome>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P5 - None    
Version: Alpha 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: The screenshot of changing the behaviour of KDM.

Description Peng Wu 2006-11-01 09:27:04 UTC
How to produce it:

1. Launch /sbin/yast2 security
2. Open the "Local Security", click next to "Boot Setting",
 set "Shutdown Behavior of KDM" to "Nobody", click finish.
3. Logout, click "Shutdown", the PC power off.
4. Reboot, login as a normal user, logout, and the user can shutdown the system.
here the yast change the conf file:
> tail -n 10 /etc/sysconfig/displaymanager
#
# Determine who will be able to shutdown or reboot the system in kdm
# and gdm. Valid values are: "root" (only root can shutdown), "all"
# (everybody can shutdown), "none" (nobody can shutdown from
# displaymanager), "auto" (follow
# System/Security/Permissions/PERMISSION_SECURITY to decide: "easy
# local" is equal to "all", everything else is equal to "root"). Note
# that remote user can never shutdown in GDM.
#
DISPLAYMANAGER_SHUTDOWN="none"

> cat /etc/opt/gnome/gdm/gdm_sysconfig.conf
# gdm.conf was last time updated with following sysconfig:
DISPLAYMANAGER_REMOTE_ACCESS="no"
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"
DISPLAYMANAGER_STARTS_XSERVER="yes"
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"
DISPLAYMANAGER_AUTOLOGIN=""
DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"
DISPLAYMANAGER_AD_INTEGRATION="no"
DISPLAYMANAGER_SHUTDOWN="auto"
PERMISSION_SECURITY="easy local"


After a while, I run SuSEconfig, the change has taken effect.
So I think, maybe after the user configure it, the Yast should run SuSEconfig or SuSEconfig.gdm.

After manually run SuSEconfig:
> cat /etc/opt/gnome/gdm/gdm_sysconfig.conf
# gdm.conf was last time updated with following sysconfig:
DISPLAYMANAGER_REMOTE_ACCESS="no"
DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"
DISPLAYMANAGER_STARTS_XSERVER="yes"
DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"
DISPLAYMANAGER_AUTOLOGIN=""
DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"
DISPLAYMANAGER_AD_INTEGRATION="no"
DISPLAYMANAGER_SHUTDOWN="none"
PERMISSION_SECURITY="easy local"
Comment 1 Peng Wu 2006-11-01 09:29:30 UTC
Created attachment 103272 [details]
The screenshot of changing the behaviour of KDM.
Comment 2 Jiří Suchomel 2006-11-01 14:24:42 UTC
Calling correct SuSEconfig module was fixed for bug #205979, so you will find the fixed package in SLES10SP1 or openSUSE10.2. From this point, this bug would be a duplicate.

However, the text stating that the shutdown behaviour configuration is only related to KDM should be generalized. Unfortunately, now we are after text freeze, so it won't get to openSUSE10.2.
Comment 3 Peng Wu 2006-11-02 02:18:30 UTC
Thank you.
Comment 4 Jiří Suchomel 2006-11-06 07:47:29 UTC
so LATER until 10.2 is out
Comment 5 Jiří Suchomel 2007-01-17 10:06:05 UTC
re
Comment 6 Jiří Suchomel 2007-01-17 10:15:45 UTC
help text fixed for opensuse 10.3