LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-22-2004, 04:55 AM   #1
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Rep: Reputation: 30
No password for shutdown or reboot with GDM.


Hi!

I don't really see the interest of putting a password on my PC to reboot or shutdown it. Just because if a guy really wants to shutdown my PC he can easily unplug the cable and it's not the password that will stop him
So i tried to put a rule into sudo like this:
Quote:
gdm = NOPASSWD: /sbin/halt, /sbin/shutdown, /sbin/reboot
But, as i thought, it didn't change anything (it seems normal to me because no one tells him to execute "sudo /sbin/reboot" )
So, did someone succeed in doing it without giving suid privilege to the programs ? Which is here quite dangerous, i don't want that a guy can reboot my PC from ssh

Thanks a lot for the future answers !

++
Creak
 
Old 07-22-2004, 05:01 AM   #2
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30
Ok sorry, i've just seen something interesting in the gdm.conf file :
Quote:
RebootCommand=/sbin/shutdown -r now \"Rebooted from gdm menu.\"
HaltCommand=/sbin/shutdown -h now \"Halted from gdm menu.\"
SuspendCommand=/usr/bin/apm --suspend
I'll try... to see if after few changes it works...
brb

--
/* -*- Creak -*- */
 
Old 07-22-2004, 10:57 AM   #3
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30
It doesn't work :-/
No one has an idea ???

Thx
 
Old 07-31-2004, 08:25 AM   #4
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30
RESOLVED

So i'm following my monologue, the solution for my problem is really simple:
In the gdm.conf file there is a line :
Quote:
# The Actions in the Actions menu require the root password
SecureSystemMenu=true
You put false instead of true and it's ok

The problem is that i don't know if remote logged people can reboot or shutdown the PC too... Maybe with a deeper reading of the conf file we can configure it too.

++
 
Old 08-30-2004, 01:19 AM   #5
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Rep: Reputation: 15
LOL

Thnx for your monologue.
I don't see the use of my girlfriend not being able to shutdown the pc either.
And i am to paranoid to give her the root password.

Anyways it works thnx
 
  


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
ShutDown/Reboot using "KDE graphical logout" and GDM ? tsiMental Ubuntu 2 08-08-2005 10:54 AM
libpam-mount gdm shutdown reboot problem pohl886 Debian 0 07-22-2005 11:39 AM
error stopping gdm on shutdown ? penguinlnx Linux - Newbie 10 05-07-2005 02:13 PM
Login and Shutdown question (kdm vs gdm) David the H. Linux - General 7 08-01-2004 08:43 AM
Getting GDM to load at reboot? Scarface Slackware 4 10-25-2003 10:24 AM


All times are GMT -5. The time now is 03:06 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