Author Topic: halt  (Read 6744 times)

0 Members and 1 Guest are viewing this topic.

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
halt
« on: February 04, 2006, 08:45:12 pm »
Is halt supposed to be a command that can only be executed by root, or did something fuck up with Slack?
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Quik

  • Webmaster Guy
  • x86
  • Hero Member
  • *****
  • Posts: 3262
  • \x51 \x75 \x69 \x6B \x5B \x78 \x38 \x36 \x5D
    • View Profile
Re: halt
« Reply #1 on: February 04, 2006, 08:54:34 pm »
/sbin/halt

shutdown -h now

Dear god, I hope you would have to be root to shutdown the computer.
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 deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: halt
« Reply #2 on: February 04, 2006, 11:05:48 pm »
Ok, is there any way I can make it so I don't have to keep switching to root to shut down? :-\ it's annoying.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: halt
« Reply #3 on: February 04, 2006, 11:07:51 pm »
Ok, is there any way I can make it so I don't have to keep switching to root to shut down? :-\ it's annoying.

sudo /sbin/shutdown -h now
- 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 Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: halt
« Reply #4 on: February 04, 2006, 11:32:33 pm »
Ok, is there any way I can make it so I don't have to keep switching to root to shut down? :-\ it's annoying.
You're supposed to switch to root? Crap, I've been using the power button!

But seriously, yeah, what Newby said.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Quik

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

Newby: for shutdown, you don't need /sbin/
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 deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: halt
« Reply #6 on: February 05, 2006, 12:26:13 am »
I'm confused! Thanks, Quik.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: halt
« Reply #7 on: February 05, 2006, 10:45:07 am »
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
- 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 Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: halt
« Reply #8 on: February 05, 2006, 01:01:14 pm »
I truely doubt he'd know how to put /sbin/ in the $PATH, so perhaps you should tell him. I'm also interested, so eh?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: halt
« Reply #9 on: February 05, 2006, 01:04:24 pm »
You can try chmod'ing it to run as root.  I've never tried that myself:
chmod +s /sbin/halt

Of course, why would you want to let an ordinary user turn off your computer, in general?  It seems silly to allow that by default.  I'm not sure how you could POSSIBLY consider that a "fuck up". 

Offline deadly7

  • 42
  • x86
  • Hero Member
  • *****
  • Posts: 6496
    • View Profile
Re: halt
« Reply #10 on: February 05, 2006, 01:13:02 pm »
You can try chmod'ing it to run as root.  I've never tried that myself:
chmod +s /sbin/halt

Of course, why would you want to let an ordinary user turn off your computer, in general?  It seems silly to allow that by default.  I'm not sure how you could POSSIBLY consider that a "fuck up". 
Windows has corrupted me.  I also assumed that all of you peoples that have been using Slackware knew of some magical trick/command to get around it for the lazy.
[17:42:21.609] <Ergot> Kutsuju you're girlfrieds pussy must be a 403 error for you
 [17:42:25.585] <Ergot> FORBIDDEN

on IRC playing T&T++
<iago> He is unarmed
<Hitmen> he has no arms?!

on AIM with a drunk mythix:
(00:50:05) Mythix: Deadly
(00:50:11) Mythix: I'm going to fuck that red dot out of your head.
(00:50:15) Mythix: with my nine

Offline Newby

  • Moderator
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: halt
« Reply #11 on: February 05, 2006, 01:30:10 pm »
I truely doubt he'd know how to put /sbin/ in the $PATH, so perhaps you should tell him. I'm also interested, so eh?

Quote
newby@impaler:~$ shutdown
-bash: shutdown: command not found
newby@impaler:~$ echo $PATH                                                   
/home/jklinect/clamav/bin:/home/jklinect/mono-1.1.13.2/bin:/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:.
newby@impaler:~$ PATH=/sbin:$PATH                                             
newby@impaler:~$ echo $PATH                                                   
/sbin:/home/jklinect/clamav/bin:/home/jklinect/mono-1.1.13.2/bin:/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:.
newby@impaler:~$ shutdown --help                                               
shutdown: you must be root to do that!
newby@impaler:~$ echo "^^"                                                     
^^
newby@impaler:~$   

Modify ~/.bash_profile to add it in there if you want it there for each login.
- 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 Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: halt
« Reply #12 on: February 05, 2006, 02:09:16 pm »
Modify ~/.bash_profile to add it in there if you want it there for each login.

How would modifying .bash_profile in one home directory affect the path for each login?  Perhaps you're implying that each login has to do that?  If that's the case, sorry.

Offline Ergot

  • 吴立峰 ^_^ !
  • x86
  • Hero Member
  • *****
  • Posts: 3724
  • I steal bandwidth. p_o
    • View Profile
Re: halt
« Reply #13 on: February 05, 2006, 02:10:56 pm »
Modify ~/.bash_profile to add it in there if you want it there for each login.

How would modifying .bash_profile in one home directory affect the path for each login?  Perhaps you're implying that each login has to do that?  If that's the case, sorry.
It will after each time that user logins in. Not for every user.
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 #14 on: February 05, 2006, 02:12:06 pm »
It will after each time that user logins in. Not for every user.

Ah.  He was using login as a verb, not a noun.  Misunderstood; sorry.