Superusers

Discussion in 'macOS' started by macteen94, Nov 27, 2011.

  1. macteen94 macrumors newbie

    Joined:
    Nov 6, 2011
    Location:
    Oregon
    #1
    I've looked all over the web, including here on MacRumors, and no leads get me anywhere. What I am trying to do is grant my administrator account permission to use the sudo command in Terminal. No matter what I try, I always get the same thing: (the instance below is received from entering "sudo" into the Terminal, as my administrator account)

    Code:
    macmini:~ admin$ sudo
    sudo: can't open /private/etc/sudoers: Permission denied
    sudo: no valid shudders sources found, quitting
    I can run the commands as the root user just fine, but I would like to have sudo access on my administrator account as well. I know this is possible. When I run the command to open the shudders file as the root user, it doesn't work either, but I can access the file using the command visudo:

    Code:
    macmini:~ root# sudo
    sudo: can't open /private/etc/sudoers: Permission denied
    sudo: no valid shudders sources found, quitting
    The following works fine, but only as the root user:

    Code:
    macmini:~ root# visudo
    That last piece of code, when entered, gives access to the /sudoers file, but I don't know how to get my administrator user to work added into that list.

    Thank you for your help, it is greatly appreciated.
     
  2. jackrv macrumors 6502

    Joined:
    Jul 14, 2011

Share This Page