LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2009, 07:37 AM   #1
fcfury
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Rep: Reputation: 0
Trying to remove the shutdown reboot button from the command line


I know how to do it from the gui but how do you do it from the command line in RHEL 5.3. I did some research and it told me to edit a entry in the /etc/gdm/custom.conf file "SystemMenu=false" but when I edited the file the entry wasn't there and when I added it, it didn't do anything. Regular users can still reboot and shutdown the computer. Anyone have any ideas?
 
Old 07-10-2009, 09:02 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Hi fcfury

You may wish to consider running your computer in runlevel 3.
Edit the following line in /etc/inittab:

id:3:initdefault:

Then simply enter

exec startx

as the last line in the $HOME/.bash_profile file

The users will enter their username and password in the command line but be ported in their GNOME desktop immediately after they log in.

Chris
 
  


Reply



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
How to remove reboot and shutdown ? khanrockz Linux - Software 2 06-13-2007 08:38 PM
Power button map to shutdown command sadarax Linux - Hardware 3 04-04-2007 08:35 AM
Logout/shutdown/reboot button misconfigured on GNOME Hungry ghost Linux - Software 1 08-09-2006 02:37 PM
mouse third button scroll problem/ reboot command help madiyaan Linux - Newbie 5 03-16-2005 10:13 AM
Creating a shutdown & reboot button Mithrilhall Linux - Newbie 6 06-30-2003 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 PM.

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