Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shutting down from within GNOME
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
dark_glaive
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 176
Location: Raleigh, NC

PostPosted: Tue Aug 31, 2004 2:24 am    Post subject: Shutting down from within GNOME Reply with quote

When I go to log out of GNOME and choose to either restart the system or shut it down, it simply returns to the GDM instead of doing either of them. Anyone know how to fix this?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Tue Aug 31, 2004 2:27 am    Post subject: Reply with quote

You might not be able to do it as a user and GDM runs as root, which is why it can, so try setting the SUID bit on the /sbin/shutdown program:
Code:
# chmod a+s /sbin/shutdown
Disclaimer: THIS IS VERY INSECURE. I only recommend it if you have a setup like mine, where its basically a single-user (I am both root and peter) box. If you're running a multi-user or SSH-enabled box, this is probably not the best idea, as people can then shutdown the system without your permission.
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum