LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to remove the shutdown reboot button from the command line (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-remove-the-shutdown-reboot-button-from-the-command-line-739161/)

fcfury 07-10-2009 07:37 AM

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?

ChrisAbela 07-10-2009 09:02 AM

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


All times are GMT -5. The time now is 08:27 PM.