LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   remove the 'shutdown' buttons (https://www.linuxquestions.org/questions/slackware-14/remove-the-shutdown-buttons-561874/)

nass 06-14-2007 03:36 PM

remove the 'shutdown' buttons
 
hello everyone,
how is it possible to remove the 'restart' and 'shutdown' buttons from kdm, so that they don't appear when a user exits from an X session ? note that i would still prefer to see them when a root logs off an X session....

nass

iiv 06-14-2007 04:05 PM

root should never log into X sessions

nass 06-14-2007 04:06 PM

nevertheless, he can... and it is not my main concern right now:)

phunkymunky 06-14-2007 04:27 PM

My memory is hazy since my system hasn't been set up like this in years, but i think that if the user doesn't have permission to shutdown/reboot then those buttons don't appear in the exit menu. ie if the user were to type "shutdown -h" at the shell then they get an error message (don't remember exact wording).
I used to have to type su - c "shutdown -h" and enter root password to shutdown my PC before I gave my everyday login permissions to shutdown and reboot.

Hope this helps and apologies if my addled mind is deluding me :)

phunkymunky

dive 06-14-2007 04:48 PM

kcontrol - system admininstration - login manager - shutdown tab

nass 06-14-2007 04:49 PM

actually it didn't i can still restart the pc after chmoding the shutdown, halt and reboot executables..

nass 06-14-2007 04:51 PM

aha! thats it.... thank you very much!:)


All times are GMT -5. The time now is 06:50 AM.