LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-09-2003, 09:07 AM   #1
carstenbjensen
Member
 
Registered: Aug 2003
Location: Denmark, Europe, Earth
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Question Disable reboot/halt/shutdown as normal user


Mandrake makes it possible to reboot/halt/shutdown the system as normal user, by default!
This is not a good thing, therefore I really would like to disable it, but I can't figure out, how Mandrake did it... can anybody help?

I have played with it, and it dosn't seem to be setUID root, but I can be wrong.
The only solution I have right now is to chmod a-x /sbin/halt, etc. But this is not a good solution, because then root can't do it either.

I hope someone has the answer I need.


Peace!
Carsten B. Jensen
 
Old 09-09-2003, 09:32 AM   #2
Oddball79
Member
 
Registered: Aug 2003
Posts: 68

Rep: Reputation: 15
have you tried removing your users from the group that these commands belong to? (that word after root when you run ls -l [filename])
 
Old 09-09-2003, 09:36 AM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
'chmod 0500 /sbin/shutdown'

this should set a file like /sbin/shutdown to have permissions of
r-x------ and remove its suid... I think /sbin/halt is just a symbolic link to /sbin/shutdown isn't it?

jpbarto
 
Old 09-09-2003, 11:36 AM   #4
carstenbjensen
Member
 
Registered: Aug 2003
Location: Denmark, Europe, Earth
Distribution: Slackware
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jpbarto
'chmod 0500 /sbin/shutdown'

this should set a file like /sbin/shutdown to have permissions of
r-x------ and remove its suid...
Thanks! Now it works like it should.

Peace!
Carsten B. Jensen
 
Old 09-09-2003, 11:42 AM   #5
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
no problem,
jpbarto
 
  


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
disable reboot/shutdown beep yiang Linux - Newbie 13 04-26-2006 11:47 PM
Can't halt or reboot with user account!!!!!! TheShemeta Slackware 20 03-19-2004 06:03 AM
SuSE 8.2 Will Not Poweroff, Shutdown, Reboot, Halt... whiskeypriest Linux - Newbie 4 09-18-2003 09:29 AM
halt/reboot from a gnome session as normal user tuggy Linux - Software 0 08-28-2003 03:38 PM
halt, shutdown, and reboot HappyDude Linux - Software 29 07-24-2003 02:05 PM

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

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