LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-10-2013, 06:42 AM   #1
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
How to disable the power button (shutdown/restart) in GDM login screen?


Hi all.

I'd like to disable the power button that appears in the lower-right corner of the GDM login screen in CentOS 6.4 (see attachment). I don't want to give normal users the ability to shutdown or restart the machine. However I couldn't find any useful method till now. Has anyone succeded in doing this?
Attached Thumbnails
Click image for larger version

Name:	PowerOff.png
Views:	87
Size:	12.9 KB
ID:	13692  
 
Old 10-10-2013, 08:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400
Give this a try:
Code:
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory -t bool -s /apps/gdm/simple-greeter/disable_restart_buttons true
Works on RHEL 6.4, so it should work on CentOS 6.4
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png
Views:	104
Size:	18.2 KB
ID:	13693  
 
1 members found this post helpful.
Old 11-06-2013, 07:18 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Original Poster
Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Today I verified it works. I couldn't log out the user till now, since it had a very long process running in foreground (I should instruct him to launch processes in background with nohup or screen). Now I can confirm that the suggested command works and the power button disappeared from the login screen. Thank you, Druuna!
 
Old 11-06-2013, 07:57 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400Reputation: 2400
You're welcome

Guess this is solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't shutdown or restart from Gnome or the Gnome login screen. Please read. pr_deltoid *BSD 1 06-15-2010 06:32 PM
disable shutdown by press the power button nickraj General 8 03-02-2007 11:16 PM
FC4: disable shutdown on login screen, still allow in kde whysyn Fedora 1 07-27-2006 01:04 AM
No "system" button on login screen so as to shutdown farpoint Debian 2 11-26-2004 06:36 PM
There is no power off button on gdm folken718 Slackware 6 08-02-2004 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration