Hi,
I am not sure if I probably have overlooked some important clue, but I am stuck with a problem with the gdm-greeter in CentOS 6.3 here since three days without finding any suitable solution.
The problem: * I have to somehow deactivate the "Suspend", "Restart" and "Shutdown" options in the login screen. * This has to be done in CLI mode, as I have to change this on many machines
Tried out solutions: * As far as I could figure out gdm-simple-greeter would be the programm I'd have to tweak. But changing options in /etc/gdm/custom.conf does not change anything (as if this file would be ignored). * Another thing would be to set the /apps/gdm/simple-greeter/disable_restart_buttons option to true through gconftool-2. But this option also seems to be ignored. Several posts on the web point to this being a bug which is fixed in RHEL but not CentOS. * I also tried to limit access to all the poweroff, reboot and halt commands through pam.d so that only root would be allowed to shutdown. This did not work either. * I even tried to rename the /sbin/reboot command (and therefore deactivate all the different links pointing to it). Still clicking the buttons still lead to a shutdown (although at some point it got stuck, but the system was not reachable any more).
Additional remarks: * I did also delete /etc/acpi/events/power.conf in order to disable the physical power button on the machine. At least that did work, but the problem still is that normal users can shutdown the machine through the gdm login screen.
If anyone has any hints, I would be very glad. And sorry if I overlooked anything, but meanwhile I am getting a bit desperate. Looking through the web and different mailing lists and fora gave me the impression that there are still several people out there with this problem and no real solution is around.
thanks, cheers, jackie
On 02/12/2013 02:51 PM, Andrea*s Jackie Klaura wrote: [snip]
The problem:
- I have to somehow deactivate the "Suspend", "Restart" and "Shutdown"
options in the login screen.
- This has to be done in CLI mode, as I have to change this on many machines
Tried out solutions:
- As far as I could figure out gdm-simple-greeter would be the programm
I'd have to tweak. But changing options in /etc/gdm/custom.conf does not change anything (as if this file would be ignored).
- Another thing would be to set the
/apps/gdm/simple-greeter/disable_restart_buttons option to true through gconftool-2. But this option also seems to be ignored. Several posts on the web point to this being a bug which is fixed in RHEL but not CentOS.
- I also tried to limit access to all the poweroff, reboot and halt
commands through pam.d so that only root would be allowed to shutdown. This did not work either.
- I even tried to rename the /sbin/reboot command (and therefore
deactivate all the different links pointing to it). Still clicking the buttons still lead to a shutdown (although at some point it got stuck, but the system was not reachable any more).
[snip]
solved.
sorry to have bothered you, but somehow setting the gconf key /apps/gdm/simple-greeter/disable_restart_buttons does work.
as i looked over it once more with a colleague setting it as mandatory did work. i don't know what is different, because i was sure i did do that before. but well, so far it worked on several systems.
so sorry to bother you all with that.
in any case someone else stumbles upon this problem, my actual solution now is rather simple:
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf \ /gconf.xml.mandatory -t bool -s /apps/gdm/simple-greeter \ /disable_restart_buttons true
cheers, jackie
On Tue, Feb 12, 2013 at 10:12 AM, Andrea*s Jackie Klaura < andreas.klaura@univie.ac.at> wrote:
On 02/12/2013 02:51 PM, Andrea*s Jackie Klaura wrote: [snip]
The problem:
- I have to somehow deactivate the "Suspend", "Restart" and "Shutdown"
options in the login screen.
- This has to be done in CLI mode, as I have to change this on many
machines
Tried out solutions:
- As far as I could figure out gdm-simple-greeter would be the programm
I'd have to tweak. But changing options in /etc/gdm/custom.conf does not change anything (as if this file would be ignored).
- Another thing would be to set the
/apps/gdm/simple-greeter/disable_restart_buttons option to true through gconftool-2. But this option also seems to be ignored. Several posts on the web point to this being a bug which is fixed in RHEL but not CentOS.
- I also tried to limit access to all the poweroff, reboot and halt
commands through pam.d so that only root would be allowed to shutdown. This did not work either.
- I even tried to rename the /sbin/reboot command (and therefore
deactivate all the different links pointing to it). Still clicking the buttons still lead to a shutdown (although at some point it got stuck, but the system was not reachable any more).
[snip]
solved.
sorry to have bothered you, but somehow setting the gconf key /apps/gdm/simple-greeter/disable_restart_buttons does work.
as i looked over it once more with a colleague setting it as mandatory did work. i don't know what is different, because i was sure i did do that before. but well, so far it worked on several systems.
so sorry to bother you all with that.
Thanks for sharing your solution.
in any case someone else stumbles upon this problem, my actual solution now is rather simple:
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf \ /gconf.xml.mandatory -t bool -s /apps/gdm/simple-greeter \ /disable_restart_buttons true
Interesting. Out of curiosity, I found [0] with the information you provided.
[0] http://help.gnome.org/admin/gdm/stable/configuration.html.en#greeterconfigur...
cheers, jackie
-- Andrea*s Jackie Klaura University of Vienna Institute of Theoretical Chemistry Waehringerstr. 17 A-1090 Vienna, Austria tel: +43 (0)1 4277 52756 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos