LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-23-2007, 06:54 AM   #1
Manaburner
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Shutdown Permission


Hi there,

I'd like to know, how I can prevent a normal user from shutting down the computer via GUI, be it Gnome, KDE or sth else.

And how can I prevent root from logging in via the GUI?

Thx
 
Old 10-23-2007, 07:37 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
You can probably find what you want relating to KDE here:

Chapter 4. Configuring kdm
http://docs.kde.org/stable/en/kdebas...uring-kdm.html

If someone has physical access to your computer, they can just as easily remove the power cord to shutdown the computer.
 
Old 10-23-2007, 07:41 AM   #3
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
Well there is a user setting to make it so certian users can't login. Not sure how to tell you to get there from KDE because I use Gnome. But look for it, you'll find it.

Secondly, find out which binary the shutdown button is using. Probably 'shutdown'. Make a group like canshut or something. Add whoever you want to be able to shutdown to that group. Chmod the file to 750 and chown it to root:canshut. Pam might have another way to do this but I'm not sure.

nomb
 
Old 10-23-2007, 07:55 AM   #4
Manaburner
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

what I found in openSuse was an entry in /etc/sysconfig/windowmanager, which controls who can reboot from the GUI. But there must be a way in other distros right?

Thx Mana
 
Old 10-24-2007, 08:15 AM   #5
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
All the shutdown buttons in a distro's gui all link to the binary. My suggestion will work in any distro.
 
  


Reply



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
My Linux box does not shutdown i do when i do /sbin/shutdown -h now yawe_frek Linux - Hardware 6 09-14-2007 07:48 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
Please help on how to save services shutdown or shutdown from the terminal. wambuzz Linux - General 2 03-11-2005 07:38 AM
Linux full shutdown vs. manual shutdown? LQtoto Linux - General 9 01-26-2005 06:21 PM
konsole shutdown possible? or key combo = shutdown possible? Laptop2250 Linux - Newbie 3 11-16-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:42 PM.

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