LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   KDE: anybody can shutdown my box!!! How to prevent this? (https://www.linuxquestions.org/questions/linux-software-2/kde-anybody-can-shutdown-my-box-how-to-prevent-this-61381/)

vous 05-23-2003 11:39 AM

KDE: anybody can shutdown my box!!! How to prevent this?
 
Hello all,

I am running KDE 3.0...

my question is the following, when I lock my screen it then prompts the user for a password, but next to that field, they can also select "start new session", and in then next screen they can do a Menu--->Shutdown......!!!!!!!

So anybody that gains physical access to the console can shutdown my box????

How can I change this?

Half_Elf 05-23-2003 01:22 PM

first, find shutdown
(probably in /sbin/shutdown, but not sure I'm not in front of a Linux box right now, can check)

then change ownership to root like this
chown root:root /sbin/shutdown


now only root can shutdown. I know it's not the best solution but this might work.

Proud 05-23-2003 01:37 PM

In the KDE control center, in System, Login Manager. Enter Admin mode (need root password) and try the Session tab iirc :)

vous 05-24-2003 03:38 AM

Thanks for your responses guys! I went to KDE Control Center--->System--->Login Manager---->Sessions tab---->Allow shutdown--->console: only root |||| remote: only root

Much better now!

Hmmmm, why would this be "Everyone" instead of root by default....not a nice security hole....?!?!

Proud 05-24-2003 04:37 AM

Well if it wasnt serving things, just a desktop box instead, and users need to turn it off or reboot, then they dont need the admin to come over and login just to shutdown. Better than having them just push the power button.
Install Mandrake9.1 as a desktop, everyone can locally reboot. Install Mandrake9.1 as a server/using Higher security setting, and it'll keep returning that option to root only. :D
True there are security problems with anyone being able to reboot while at the machine, but you should be able to find info to protect bootloader security issues.
You can set it to do whatever you want. :)

vous 05-25-2003 04:07 AM

Thanks for the tips guys!


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