sudo: Permission denied.

Discussion in 'macOS' started by chuoqiu, Jul 30, 2010.

  1. chuoqiu macrumors newbie

    Joined:
    Jul 30, 2010
    #1
    Hi! c:
    I'm trying to configure MacPorts to install Wine. According to this site:
    http://davidbaumgold.com/tutorials/wine-mac/
    I need to enter the command

    echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$'\n'export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile

    but this just gets me the error message:

    sudo: can't open /private/etc/sudoers: Permission denied

    I only have one account on this computer, so it is an admin account.
    I'm not really familiar with Terminal, so any help in simple terms would be greatly appreciated.
    Thanks in advance!
     
  2. Morod macrumors 68000

    Morod

    Joined:
    Jan 1, 2008
    Location:
    On The Nickel, over there....
    #2
    Be careful with Terminal!

    Sorry I can't help you with your problem.
    Just be careful in Terminal as that is one place you can really mess up your computer!
    Best of luck to you.
     
  3. LPZ macrumors 65816

    Joined:
    Jul 11, 2006
    #3
    My guess is that the website you are using is old. I would ignore it. Simply install MacPorts and then enter the following in Terminal:

    sudo port -v install wine

    This should install wine-1.2, all configured and ready to use. If problems arise, I'd ask them at MacPorts.

    (By the way, I've built wine many times directly from source, without even using MacPorts.)
     
  4. chuoqiu thread starter macrumors newbie

    Joined:
    Jul 30, 2010
    #4
    Well, since the problem is with sudo, that command doesn't work.
    When I enter that in, I get the same thing:

    sudo: can't open /private/etc/sudoers: Permission denied
     
  5. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5

Share This Page