Sudo: Root: Command not found?

Discussion in 'macOS' started by philstone, May 25, 2010.

  1. philstone macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #1
    Help - Trying to use Sudo I get the above error - can anyone give me any pointers as to why?

    Check /Usrs/bin and sudo is there

    Have repaired permissions...

    TIA!

    Phil
     
  2. Kenndac macrumors 6502

    Kenndac

    Joined:
    Jun 28, 2003
    #2
    Exactly what command are you typing? The error suggests you're typing 'root' as part of the command - you don't do that, using the root user is what the command does, so there's no need to add it in.

    For example, this will reboot your computer:

    Code:
    sudo reboot
     
  3. philstone thread starter macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #3
    I'm trying to install McAfee Agent for ePO as I'm evaluating it... However the install is through terminal and the instructions are...

    Run as root (so opening Terminal then sudo root)
    Then in the correct directory
    chmod +x install.sh
    ./install.sh -i

    As soon as I sudo root I enter my password then get the above error...
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    This is probably a silly question but are you typing Sudo (as per your original post) or sudo (which is what the command is called)?
     
  5. philstone thread starter macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #5
    Just double checked - definitely sudo...

    Going to try sudo reboot now see if that works...
     
  6. neilhart macrumors 6502

    neilhart

    Joined:
    Oct 11, 2007
    Location:
    SF Bay Area - Fremont
    #6
    To run as root or super user

    So open the terminal and use "sudo su" argument, enter your admin password and you will be logged in as the root or super user until you exit.

    neil
     
  7. philstone thread starter macrumors 6502

    Joined:
    Oct 13, 2008
    Location:
    Jersey, Channel Isles
    #7
    Thanks all - my commands were not quite right!

    CHeers

    Phil
     

Share This Page