LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2003, 10:41 PM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Stop users from doing shutdown in Gnome


I have a wonderful thing happen... I was logged in remote to my server and my wife was on her laptop (NCD)

Before she went to bed she clicked shutdown... it took me a few minutes to figure out why I had no network, no web site and was getting pages the server was down.

How do I disable "Shutdown" and "Restart" from the menu when a user logs out?

I tried blanking the following from the gdm.conf

HaltCommand=
RebootCommand=
SuspendCommand=

even tried

HaltCommand=/scripts/noaccess.sh
RebootCommand=/scripts/noaccess.sh
SuspendCommand=/scripts/noaccess.sh

still users can shutdown my server from that screen.

how do I disable it? I know I could remove the /sbin/halt .. etc but every time there is a Redhat upgrade it copies it back in.

HELP!!

Thanks,
Michael
 
  


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
Can't stop anonymous vsftp users lagu2653 Linux - Networking 2 11-17-2005 09:54 PM
stop users from su'ing Phonics3k Linux - Security 4 11-12-2005 10:03 PM
How do I add start and stop commands to systems startup and shutdown processes? mlsbraves Slackware 1 11-25-2004 07:04 AM
How to set a Gnome theme as default for all users and future users ? MDesigner Linux - Newbie 1 06-28-2004 11:12 AM
How do I stop autolooging in of users into KDE? hiplainsdrifter Linux - General 1 04-15-2004 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:06 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