Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shutdown from Gnome log out menu
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Bytal
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 170
Location: NYC, USA

PostPosted: Sat Oct 18, 2003 9:33 pm    Post subject: Shutdown from Gnome log out menu Reply with quote

This was just posted on planet-gnome and I definitely know I'm not the only one who was trying to find out how to do this.

Code:
create an empty file named as the user in one of these places
/var/lock/console/<logged_in_user>
or
/var/run/console/<logged_in_user>

for example:
touch /var/lock/console/n0p
chattr +i /var/lock/console/n0p  (prevent remove on (re)boot )

Set the suid on halt:
chmod +4755 /sbin/halt

done!

_________________
Of all the things I lost, I miss my mind the most.
Back to top
View user's profile Send private message
mantis
Tux's lil' helper
Tux's lil' helper


Joined: 30 Jul 2002
Posts: 134
Location: Sydney

PostPosted: Sun Oct 19, 2003 4:36 am    Post subject: Reply with quote

Is it particulary safe chmoding halt to that degree?
Back to top
View user's profile Send private message
Bytal
Apprentice
Apprentice


Joined: 30 Sep 2002
Posts: 170
Location: NYC, USA

PostPosted: Sun Oct 19, 2003 5:02 am    Post subject: Reply with quote

No I doubt it is :( Unfortunately every way to use the gnome logout halt/reboot feature that I've seen requires you to have access to the shutdown and reboot binaries. This had a less troublesome setup in terms of ease of use then most of the others. I would love to find a way to do this without completely opening up reboot/halt binaries like that.
_________________
Of all the things I lost, I miss my mind the most.
Back to top
View user's profile Send private message
chipi
n00b
n00b


Joined: 05 Oct 2003
Posts: 62
Location: Israel

PostPosted: Sun Oct 19, 2003 9:27 am    Post subject: Reply with quote

Thank you for this tip :)
Please update us if you'll find a way to do it without chmoding those files :P
Back to top
View user's profile Send private message
adammc
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 230
Location: Europe

PostPosted: Sun Oct 19, 2003 10:15 pm    Post subject: Reply with quote

couldn't you just chgrp the binaries? seems like the easiest way to me

also, will chattr work on reiserfs?
_________________
There'd better be fudge when I get home...
Back to top
View user's profile Send private message
Professor Frink
Tux's lil' helper
Tux's lil' helper


Joined: 03 Oct 2003
Posts: 128
Location: Bethlehem, PA

PostPosted: Mon Oct 20, 2003 9:00 pm    Post subject: Reply with quote

I use reiserfs and this method works but once i reboot i have to do everything again, i guess it doesn't work for reiser, any other suggestions on how to get it to work?
_________________
"You've got to listen to me. Elementary chaos theory tells us that all robots will eventually turn against their masters and run amok in an orgy of blood, and kicking and the biting with the metal teeth and the hurting and shoving."
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Sun Dec 14, 2003 5:36 am    Post subject: Safer Reply with quote

A safer solution(the last one is the safest):
https://forums.gentoo.org/viewtopic.php?t=88141&highlight=reboot+gnome+halt
_________________
Stormer :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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