View previous topic :: View next topic |
Author |
Message |
Bytal Apprentice
Joined: 30 Sep 2002 Posts: 170 Location: NYC, USA
|
Posted: Sat Oct 18, 2003 9:33 pm Post subject: Shutdown from Gnome log out menu |
|
|
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 |
|
|
mantis Tux's lil' helper
Joined: 30 Jul 2002 Posts: 134 Location: Sydney
|
Posted: Sun Oct 19, 2003 4:36 am Post subject: |
|
|
Is it particulary safe chmoding halt to that degree? |
|
Back to top |
|
|
Bytal Apprentice
Joined: 30 Sep 2002 Posts: 170 Location: NYC, USA
|
Posted: Sun Oct 19, 2003 5:02 am Post subject: |
|
|
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 |
|
|
chipi n00b
Joined: 05 Oct 2003 Posts: 62 Location: Israel
|
Posted: Sun Oct 19, 2003 9:27 am Post subject: |
|
|
Thank you for this tip
Please update us if you'll find a way to do it without chmoding those files |
|
Back to top |
|
|
adammc Apprentice
Joined: 07 Oct 2003 Posts: 230 Location: Europe
|
Posted: Sun Oct 19, 2003 10:15 pm Post subject: |
|
|
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 |
|
|
Professor Frink Tux's lil' helper
Joined: 03 Oct 2003 Posts: 128 Location: Bethlehem, PA
|
Posted: Mon Oct 20, 2003 9:00 pm Post subject: |
|
|
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 |
|
|
stormer Tux's lil' helper
Joined: 20 May 2002 Posts: 122 Location: Canada
|
|
Back to top |
|
|
|