LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-08-2005, 11:01 AM   #1
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
shutting down and rebooting from logout screen


Im ruynning gentoo 2005.0 and i want to know how to be able to shutdown or reboot my computer from the logout screen. The options are there but when i choose them it just takes me to GDM and i have to shut down from there. I assume i need to set some permissions somewhere but im not sure what exactly. Thanks in advance
 
Old 06-08-2005, 01:37 PM   #2
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
My guess is that Gentoo sets it up so that only root can shutdown the machine. It is a security feature. So try this...it is from member sbing in a Slackware FAQ (I edited it to reflect non-slackware-centric principals).

This command requires you to have the "sudo" command. I assume you have it installed:
visudo /etc/sudoers (really, any text editor should work)

Place the following in the file:
yourusername yourhostname = NOPASSWD: /sbin/reboot, /sbin/halt -h now, /sbin/halt

You can now shutdown via sudo without a password.

To enable shutdown/reboot from within gnome (ala the way DL GNOME sets it up):

mkdir /var/run/console
touch /var/run/console/yourusername
chmod +s /sbin/reboot
chmod +s /sbin/halt
 
Old 06-08-2005, 02:07 PM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Original Poster
Rep: Reputation: 31
hey i will try this as soon as i can but thanks for the reply i will let you know if it worked.
 
  


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
Blank screen while shutting down tcamp Fedora 4 10-17-2005 06:36 PM
Screen Goes Crazy When Shutting Down 9.3 RAMMS+EIN SUSE / openSUSE 1 08-18-2005 09:38 PM
Windows can't detect screen after rebooting from Linux ?!?! eltoro Linux - Hardware 3 10-15-2004 06:37 AM
logout no screen magicdev Linux - Software 10 09-06-2004 12:10 PM
screen does not power off after shutting the lid roaher Linux - Laptop and Netbook 4 09-19-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration