LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2003, 06:22 PM   #1
stikboy
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: RedHat 7.1/Redhat 8.0/Gentoo 1.4
Posts: 45

Rep: Reputation: 15
Question 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?
 
Old 05-08-2003, 06:35 PM   #2
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
~/.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}
`

Last edited by PTBmilo; 05-08-2003 at 06:40 PM.
 
Old 05-08-2003, 06:45 PM   #3
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
No, there's no command for that.
 
Old 05-08-2003, 07:02 PM   #4
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
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.
 
Old 05-08-2003, 07:23 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 05-08-2003, 08:34 PM   #6
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Quote:
Originally posted by Tinkster
man sudoers
man sudo
Your wisdom astonishes me.
 
Old 05-09-2003, 08:11 AM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
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.
 
Old 05-09-2003, 01:35 PM   #8
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
or a less secure alternative is if you are the only one using the machine chmod 7755 /sbin/shutdown then shutdown -h now works
 
Old 05-09-2003, 03:26 PM   #9
eltongeoff
Member
 
Registered: Mar 2003
Posts: 76

Rep: Reputation: 15
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?
 
Old 05-09-2003, 03:39 PM   #10
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
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.
 
Old 05-09-2003, 03:45 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 05-09-2003, 04:05 PM   #12
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
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>

Last edited by PTBmilo; 05-09-2003 at 04:07 PM.
 
Old 05-09-2003, 04:14 PM   #13
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
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
 
Old 05-09-2003, 04:21 PM   #14
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
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.
 
Old 05-09-2003, 07:59 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
  


Reply



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
logout others ceph Linux - General 1 10-25-2005 11:37 AM
how do i logout? howarddevore Debian 7 07-05-2005 10:54 AM
logout others ceph Linux - Security 3 06-07-2004 11:09 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
Fluxbox: Enabling KDE using package install of fluxbox underline Linux - Software 0 12-27-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:27 AM.

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
Open Source Consulting | Domain Registration