LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fluxbox logout (https://www.linuxquestions.org/questions/linux-newbie-8/fluxbox-logout-58798/)

stikboy 05-08-2003 06:22 PM

fluxbox logout
 
I am running fluxbox under RedHat 8. Under gnome, there is a logout button that will pop up a menu asking if you want to logout, reboot or shutdown. Is there a command I can put in the fluxbox menu that will get me the same options when I'm ready to quit/reboot/whatever?

PTBmilo 05-08-2003 06:35 PM

~/.fluxbox/menu:
Code:

[submenu] (Fluxbox-menu)
        [restart] (Restart)
        [exit] (Exit)
[end]

... it's probably already in there somewhere.

EDIT:
(forgot the most important part :)

Code:

[exec] (REBOOT) {reboot}
[exec] (POWEROFF) {poweroff}
`


serz 05-08-2003 06:45 PM

No, there's no command for that.

PTBmilo 05-08-2003 07:02 PM

Quote:

Originally posted by serz
No, there's no command for that.
You have to be root to use poweroff and shutdown... otherwise you'll just get an error on the console.

Tinkster 05-08-2003 07:23 PM

Quote:

You have to be root to use poweroff and shutdown... otherwise you'll just get an error on the console.
man sudoers
man sudo

Cheers,
Tink

PTBmilo 05-08-2003 08:34 PM

Quote:

Originally posted by Tinkster
man sudoers
man sudo

Your wisdom astonishes me.

wapcaplet 05-09-2003 08:11 AM

Quote:

Originally posted by PTBmilo
Your wisdom astonishes me.
Are you being sarcastic?

As Tinkster says, the /etc/sudoers file specifies who gets to do what. It's one way of granting normal users the privilege of shutting down and whatnot. So no, you don't have to be root to do it.

nakkaya 05-09-2003 01:35 PM

or a less secure alternative is if you are the only one using the machine chmod 7755 /sbin/shutdown then shutdown -h now works

eltongeoff 05-09-2003 03:26 PM

is there a way too exit from the command line. commands such as exit or logout only close the terminal. or do i have to right click and choose exit? really id like to enter in a command. anyone know about this?

tcaptain 05-09-2003 03:39 PM

Depending on your distro and how you're setup, you can either:

1) Type halt or reboot as your user or try it as root (using SU)

or

2) you can try as root "shutdown -h now" and see if that works.

Tinkster 05-09-2003 03:45 PM

Quote:

is there a way too exit from the command line. commands such as exit or logout only close the terminal. or do i have to right click and choose exit? really id like to enter in a command. anyone know about this?
As user who runs fluxbox...
kill `ps -Al | grep flux | cut -b 12-17`

The hard way ;)
su -c killall X



Cheers,
Tink

PTBmilo 05-09-2003 04:05 PM

Quote:

(not so) Originally cracked by Tinkster
so no, you don't have to be root
haha... pretty good Tink. How the fsck did you get my IP? You really think that I'm gonna download your Trojans?????

P.S.: the hard way ;) <CTRL><ALT><BACKSPACE>

Mega Man X 05-09-2003 04:14 PM

Do like I did the first time I've got my 386 computer with win3.1, go directly into the on/off switch of your computer :) No complications...

seriously, don't do it :)

serz 05-09-2003 04:21 PM

Quote:

Originally posted by PTBmilo
You have to be root to use poweroff and shutdown... otherwise you'll just get an error on the console.
Yea I know.. I didn't intrepret the msg very well, sorry.

Tinkster 05-09-2003 07:59 PM

Quote:

Originally posted by PTBmilo
haha... pretty good Tink. How the fsck did you get my IP? You really think that I'm gonna download your Trojans?????
What the heck are you talking about?


/me is puzzled


Cheers,
Tink


All times are GMT -5. The time now is 01:09 PM.