LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04:36 PM   #1
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Rep: Reputation: 36
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, 05: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, 05:06 PM   #3
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
nevertheless, he can... and it is not my main concern right now
 
Old 06-14-2007, 05: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, 05:48 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
kcontrol - system admininstration - login manager - shutdown tab
 
Old 06-14-2007, 05:49 PM   #6
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

Original Poster
Rep: Reputation: 36
actually it didn't i can still restart the pc after chmoding the shutdown, halt and reboot executables..
 
Old 06-14-2007, 05:51 PM   #7
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slack(64|32)_v(13.37|14.0), debian6, ubuntu
Posts: 632

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


All times are GMT -5. The time now is 01:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration