LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-25-2003, 10:26 PM   #1
sangjin
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
Disabling system shutdown from XDM logon


Dear Everyone

I am using Redhat 9 and I did not notice that an ordinary user could shutdown the system using the GNOME menu until a friend of mine came by poweroff my linux without needing the root password. Now I am puzzled to why this is the default action selected by Redhat.

I changed the permission of /sbin/halt and /sbin/shutdown to 700. Now, an ordinary user cannot shutdown the system using the menu while log on to X11. But anyone can still shutdown or reboot the system from the intial X11 logon window(I am using level 5 as default run level) using the menu given at the bottom of the screen. How can I disable it? I would like to prevent someone from shutting or rebooting the system if they have access to the actual computer.

Sincerely yours,
Sangjin
 
Old 08-25-2003, 10:46 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
whoever can access your console and shutdown probably also can push "THE BIG RED BUTTON" for some seconds :-)

in /etc/opt/gnome2/gdm/gdm.conf you can cange:
"RebootCommand=/sbin/shutdown -r now"
 
Old 08-26-2003, 12:15 AM   #3
sangjin
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
In my system following file does not exists.

/etc/opt/gnome2/gdm/gdm.conf
 
Old 08-26-2003, 12:28 AM   #4
sangjin
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I have find the gdm.conf in /etc/X11/gdm/gdm.conf.
In this file RebootCommand is already set to
/sbin/shutdown -r now.
 
Old 08-26-2003, 12:28 AM   #5
sangjin
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I have found the gdm.conf in /etc/X11/gdm/gdm.conf.
In this file RebootCommand is already set to
/sbin/shutdown -r now.
 
Old 08-26-2003, 12:31 AM   #6
redcane
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 15
Change it to blank. or "false"
 
  


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
Shutdown from xdm arubin Linux - Software 10 12-01-2005 08:44 AM
Change userID now can't logon to system saraeliz Linux - Newbie 5 10-11-2005 09:07 PM
blank screen at logon-file system not clean AbZu Mandriva 2 09-22-2005 07:50 AM
Can't logon to non-root users from wdm,xdm websinger Debian 4 12-20-2004 06:50 PM
Linux shutdown disabling sound device in BIOS Shay Linux - General 3 03-29-2004 06:45 PM


All times are GMT -5. The time now is 01:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration