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

Notices


Reply
  Search this Thread
Old 02-19-2006, 10:51 AM   #1
kj6loh
Member
 
Registered: Jun 2004
Posts: 47

Rep: Reputation: 17
disabling shutdown?


Well, not precisely. But I want to know if there is a way to disable shutdown by anyone other than root at the command line (and of course the power switch). IE. Rid the shutdown at the login screen. I've already edited /etc/inittab to disable the three finger salute.
 
Old 02-19-2006, 01:03 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Are you using KDM as your login manager? If so, open the KDE Control Centre and navigate to System Administration / Login Manager. Click the Administrator Mode button and provide the root password. Go to the Shutdown tab and use the drop-down boxes to limit who can shutdown the PC.

On the box I'm working on at the moment (Slackware) normal users can't shut down or reboot the PC from the command line due to permissions. If Fedora is the same (and from memory it is) that should be all you need to do since you've already disabled <Ctrl><Alt><Del>.
 
Old 02-20-2006, 08:08 PM   #3
kj6loh
Member
 
Registered: Jun 2004
Posts: 47

Original Poster
Rep: Reputation: 17
I'm using the gnome desktop environ not kde. I tried gdmsetup but that does not allow me to disable shutdown from the login screen. When the user logs out he is prompted whether he want's to restart/shutdown but those are both tied to the login page so that's fine. I just have to deal with the shutdown for the login screen.

So the question still remains unanswered.
 
Old 02-20-2006, 09:32 PM   #4
baldwonder
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, VectorLinux, FreeBSD,Xubuntu
Posts: 69

Rep: Reputation: 15
If you are using gdm, you should be able to remove the shutdown option at the login screen by opening /etc/X11/gdm/gdm.conf and changing:
Code:
SystemMenu=true
to
Code:
SystemMenu=False
You can edit the sudoers file to prevent anyone but root from shutting down then machine by typing visudo as root at the command prompt. Look for lines like the following:
Code:
Cmnd_Alias SHUTDOWN=/sbin/shutdown,/sbin/halt,/sbin/fasthalt,/sbin/reboot,/
sbin/fastboot

%users          ALL=NOPASSWD:SHUTDOWN,DIAL,SERVER,HW1,MOUNT1,SGMAP,PDMOUNT
If you remove SHUTDOWN from the %users line, regular users will not be allowed to shut down or reboot the machine.

Hope this helps.
 
Old 02-21-2006, 02:27 AM   #5
kj6loh
Member
 
Registered: Jun 2004
Posts: 47

Original Poster
Rep: Reputation: 17
Thank you all very much!
 
  


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
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 07:38 AM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 06:21 PM
Linux shutdown disabling sound device in BIOS Shay Linux - General 3 03-29-2004 05:45 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 10:44 AM
Disabling system shutdown from XDM logon sangjin Linux - Security 5 08-25-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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