Author Topic: halt  (Read 9369 times)

0 Members and 2 Guests are viewing this topic.

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: halt
« Reply #15 on: February 05, 2006, 03:36:26 pm »
You could change your sudoers file to allow yourself to sudo /sbin/halt

Newby: for shutdown, you don't need /sbin/

If he's using Slackware, /sbin/ isn't in $PATH for a normal user (unless you modify it to be there).

:0

What slack versions have you been using?
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: halt
« Reply #16 on: February 05, 2006, 03:42:50 pm »
Quik what version of Slackware have YOU been using?

ergot@deepthought:~$ locate shutdown | grep sbin
/sbin/shutdown
ergot@deepthought:~$ /sbin/shutdown
shutdown: you must be root to do that!
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: halt
« Reply #17 on: February 05, 2006, 03:58:58 pm »
You could change your sudoers file to allow yourself to sudo /sbin/halt

Newby: for shutdown, you don't need /sbin/

If he's using Slackware, /sbin/ isn't in $PATH for a normal user (unless you modify it to be there).

:0

What slack versions have you been using?

Slackware 10.0, Slackware 10.1, and Slackware 10.2...
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: halt
« Reply #18 on: February 05, 2006, 04:52:22 pm »
Quik what version of Slackware have YOU been using?

ergot@deepthought:~$ locate shutdown | grep sbin
/sbin/shutdown
ergot@deepthought:~$ /sbin/shutdown
shutdown: you must be root to do that!


Yeah, but try a "sudo shutdown -h now" ;)
Quote
[20:21:13] xar: i was just thinking about the time iago came over here and we made this huge bomb and light up the sky for 6 min
[20:21:15] xar: that was funny

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: halt
« Reply #19 on: February 05, 2006, 05:05:17 pm »
Quote
newby@impaler:~$ sudo shutdown --help
Password:
sudo: shutdown: command not found
newby@impaler:~$ echo "Quik is a raging homo."                                 
Quik is a raging homo.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: halt
« Reply #20 on: February 05, 2006, 08:52:41 pm »
I don't believe any Slackware versions have /sbin or /usr/sbin on the PATH, but on that same note, who cares?  Where shutdown is located has nothing to do with the question in this topic.  Perhaps somebody should find all the posts that are related to where shutdown is located and move them somewhere.  Right now, this thread is very confusing. 

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: halt
« Reply #21 on: February 06, 2006, 07:51:24 pm »
sidoh@deepthought:~$ sudo shutdown --help
Password:
sudo: shutdown: command not found
sidoh@deepthought:~$ sudo /sbin/shutdown --help
/sbin/shutdown: invalid option -- -
Usage:    shutdown [-akrhfnc] [-t secs] time [warning message]
                  -a:      use /etc/shutdown.allow
                  -k:      don't really shutdown, only warn.
                  -r:      reboot after shutdown.
                  -h:      halt after shutdown.
                  -f:      do a 'fast' reboot (skip fsck).
                  -F:      Force fsck on reboot.
                  -n:      do not go through "init" but go down real fast.
                  -c:      cancel a running shutdown.
                  -t secs: delay between warning and kill signal.
                  ** the "time" argument is mandatory! (try "now") **
sidoh@deepthought:~$ sudo echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
sidoh@deepthought:~$

Offline mynameistmp

  • Moderator
  • Full Member
  • *****
  • Posts: 111
  • Hi! I'm new here!
    • View Profile
Re: halt
« Reply #22 on: February 07, 2006, 03:28:41 am »
FYI: if you use /sbin/poweroff it'll shutdown the power for you automatically (shutdown doesn't, unless you throw the -p switch on the FBSD version).

Thought I'd mention poweroff is part of the sysvinit package (http://freshmeat.net/projects/sysvinit/), if you're interested in downloading it. Slackware comes with it installed by default.
« Last Edit: February 07, 2006, 03:32:35 am by mynameistmp »

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: halt
« Reply #23 on: February 07, 2006, 03:30:39 am »
It doesn't?! Mine does on both my desktop and laptop but not my server :(.
Who gives a damn? I fuck sheep all the time.
And yes, male both ends.  There are a couple lesbians that need a two-ended dildo...My router just refuses to wear a strap-on.
(05:55:03) JoE ThE oDD: omfg good job i got a boner thinkin bout them chinese bitches
(17:54:15) Sidoh: I love cosmetology

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: halt
« Reply #24 on: February 07, 2006, 03:32:16 pm »
FYI: if you use /sbin/poweroff it'll shutdown the power for you automatically (shutdown doesn't, unless you throw the -p switch on the FBSD version).

Thought I'd mention poweroff is part of the sysvinit package (http://freshmeat.net/projects/sysvinit/), if you're interested in downloading it. Slackware comes with it installed by default.

That's good to know.  Thanks. :)