Click to See Complete Forum and Search --> : How to block reboot and shutdown in GNOME
idlewormca
02-12-2004, 12:06 AM
I have installed Redhat 9.0 in my PC. When I login GNOME as a normal user and try loging out the GNOME. There are three actions I can select: logout, reboot, shutdown. I want to remove acitons: reboot and shutdown because I don't want to a normal user has this right. How can I do this? Thanks!:)
JohnT
02-12-2004, 12:31 AM
Have you tried just changing permissions on /sbin/reboot and /sbin/shutdown?
idlewormca
02-12-2004, 10:53 AM
I've tried your suggestion. It works. When I select reboot or shutdown, the system reports "failed to find the program", then quit the GNOME. In KDE, these two actions don't even appear. A normal user only can select 'logout' in KDE. Can I do this in GNOME. By the way, the rights of files under /sbin are 755, do I need to change all of them to 700? Thanks!
thaddaeus
02-12-2004, 11:00 AM
On my Gnome, slack 9.1, it dosn't have the shutdown and reboot crap, only logout, try editing your menu bar that would be better then getting an error
GlennaclawZ
02-12-2004, 11:01 AM
yes... that would be my first bet... to edit the gnome menu file. if that doesnt work try doing it all from just a regular console.
mdwatts
02-12-2004, 11:21 AM
I know in the KDE Control Center under System Administration/Login Manager/Sessions, there is a 'Allow Shutdown' dropdown box where you can specify Everybody/Only Root/Nobody. Not sure about Gnome though.
JohnT
02-12-2004, 12:54 PM
Originally posted by idlewormca
By the way, the rights of files under /sbin are 755, do I need to change all of them to 700? Thanks!
Thats your decision.
idlewormca
02-12-2004, 11:10 PM
But how to edit the menu file in GNOME? Thanks!:rolleyes:
JohnT
02-12-2004, 11:34 PM
http://www.linuxforum.com/gnome/goseditmainmenu-54.html
BTW: This was found by going to www.google.com/linux and entering your question It was the fourth entry. Use google/linux and it will help you find linux documentation. I found the answer in less than 2 minutes.