Terminal Kill Command...

Discussion in 'macOS' started by Arkanok, Mar 13, 2009.

  1. Arkanok macrumors 6502a

    Arkanok

    Joined:
    Feb 13, 2007
    #1
    Hey everybody, the other day I ran across a set of terminal commands and found one that showed how to connect to another mac using terminal. My friend has a mac and the other day I was messing with him by using the command "kill ###" (the ### represents the process ID) and it worked fine, but today I tried it and it won't work! I'm getting the following error now:
    "Operation not permitted"

    I find it strange because it worked fine up until today. Does anybody know what could be causing this? It's been kinda fun messing with him lol.
     
  2. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #2
    Likely because the process you're trying to kill isn't owned by you.
    Use sudo.
     
  3. Arkanok thread starter macrumors 6502a

    Arkanok

    Joined:
    Feb 13, 2007
    #3
    How do I use sudo? Sorry, I'm new to terminal commands.
     
  4. BobZune macrumors 6502a

    Joined:
    Oct 26, 2007
    Location:
    USA
    #4
    Type sudo before the command, then type that command. You will be asked for the password.

    [Make sure you know what you are doing before using such powerful terminal features!]
     
  5. notjustjay macrumors 603

    notjustjay

    Joined:
    Sep 19, 2003
    Location:
    Canada, eh?
    #6
    Err... might I suggest that randomly killing processes on your friend's machine is not really a very good idea of a practical joke, especially if you don't know what you're doing.
     
  6. Arkanok thread starter macrumors 6502a

    Arkanok

    Joined:
    Feb 13, 2007
    #7
    haha it's ok, I'm only killing his firefox. I wouldn't kill something I didn't know what it was.

    Actually, i've been making his computer just say random stuff lol.

    Believe me, I'm only doing safe stuff
     
  7. macffooky macrumors regular

    Joined:
    May 13, 2004
    Location:
    The 51st State
    #8
    Me: Turn that crap down !

    Daughter: ........

    Me: Turn that crap down, now !

    Daughter: .........

    Me: ssh -2 daughter@daughter

    kill 2345

    Daughter: ?????????????

    Me: :)
     

Share This Page