LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (http://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Redhat 9: restricting reboot/shutdown from login screen (http://www.linuxquestions.org/questions/linux-distributions-5/redhat-9-restricting-reboot-shutdown-from-login-screen-66626/)

jsf03723 06-19-2003 11:05 AM

Redhat 9: restricting reboot/shutdown from login screen
 
Redhat 9 is installed on a machine that I want to restrict reboot/shutdown access to.

With Redhat 9, I am presented with a GUI log in screen. At the bottom of that screen there are options for Preferences, Reboot, Shutdown, etc. If someone walks up to the console, they can choose to reboot or shutdown the system without being prompted for a password.

Ok, we can restrict access to /sbin/shutdown, /sbin/reboot, etc, so that only root can execute the reboot or shutdown from a command prompt, but I want to restrict it from the console.

How can I restrict these options from the GUI log in screen?

Thanks for your help,
Jim

tangle 06-19-2003 12:02 PM

Did you try to chmod 700 /sbin/shutdown and chmod 700 /sbin/reboot.

jsf03723 06-19-2003 03:56 PM

Ok, tried that, neither helped. There is a confirmation dialog box after selecting "Shutdown" or "Reboot" but there is no means of authenticating that the user should actually be doing that.

Other thoughts?

tangle 06-19-2003 07:39 PM

Go to your K on the task bar, then preferences, then system and then login manager. In the sessions tab there is a commands section where the path is set for halt and reboot. you could just clear the paths. I do not boot to a gui so I have not tried it. It is a little half _ss fix but should work.

tangle 06-19-2003 07:39 PM

Go to your K on the task bar, then preferences, then system and then login manager. In the sessions tab there is a commands section where the path is set for halt and reboot. you could just clear the paths. I do not boot to a gui so I have not tried it. It is a little half _ss fix but should work.

jsf03723 06-19-2003 07:55 PM

That sounds like a reasonable way to do it, alas, I do not have a Preferences->System option. Nothing between Sound and Themes, as either a user or root.

There must be a text file that it saves its definitions to, any idea on where that might be?

Thanks for the ideas,
Jim

tangle 06-19-2003 08:15 PM

I think to get them you need the kdeadmin or kdeutils to do that. They should be on you cd. They should allow you to do it.

Also you might want to checkout /opt/kde/share/config/kdm/kdmrc file. About the third of the way down there is a rebootcmd= and a haltcmd= . This is what I think you are looking for.

jsf03723 06-20-2003 10:33 AM

I will have to investigate those packages. I do not have them installed. The resource file you identify is not present at that location, nor could I find it on the system.

Thanks for the pointers to date,
Jim


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