LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-14-2007, 03:36 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
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
 
Old 06-14-2007, 04:05 PM   #2
iiv
Member
 
Registered: Jun 2007
Location: Russia, Moscow Region
Distribution: Slackware
Posts: 167

Rep: Reputation: 30
root should never log into X sessions
 
Old 06-14-2007, 04:06 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
nevertheless, he can... and it is not my main concern right now
 
Old 06-14-2007, 04:27 PM   #4
phunkymunky
Member
 
Registered: Aug 2003
Location: Glasgow, Scotland
Distribution: Slackware 14.0, Debian 7.0
Posts: 60

Rep: Reputation: 22
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
 
Old 06-14-2007, 04:48 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
kcontrol - system admininstration - login manager - shutdown tab
 
Old 06-14-2007, 04:49 PM   #6
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
actually it didn't i can still restart the pc after chmoding the shutdown, halt and reboot executables..
 
Old 06-14-2007, 04:51 PM   #7
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Original Poster
Rep: Reputation: 39
aha! thats it.... thank you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to remove reboot and shutdown ? khanrockz Linux - Software 2 06-13-2007 08:38 PM
Help binding mouse buttons to keyboard buttons Eckstona Linux - Hardware 6 09-24-2006 07:28 AM
Where are shutdown and reboot buttons? dubya Fedora 10 03-27-2006 04:07 PM
How do i add or remove buttons from the KDE 'start' menu? m15a4 Linux - Software 5 12-22-2003 04:12 AM

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

All times are GMT -5. The time now is 07:21 AM.

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