Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macteen94

macrumors newbie
Original poster
Nov 6, 2011
19
0
Oregon
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.