sudoers Error
Imported from the Apple Support Forums via the Wayback Machine 🔗
Wanting to install the Go programming language. Got everything from Mercurial and tried to build but it told me that it couldn't. Using the Google Groups I discover that I need to edit /etc/sudoers to make sure that the GOHOME, GOBIN, GOOS, and GOARCH environment variables are available to sudo. I fire up TextMate and edit like I thought was necessary and then I get syntax errors.
So I delete all of my changes and then my user can no longer perform a sudo getting "wobbet is not in the sudoers file." as an error message.
After doing a lot of digging I find a hit on this discussion board that says I really, really need to use visudo to edit the sudoers file and since it is corrupt I need to do so from the root login.
So I enable root login and restart and get into root mode and edit with no errors reported and come back with the same error message.
Then I go back into root mode, rm /etc/sudoers, and then visudo to create the file. I confirm it is now a 0 byte file. Restart and still get the same error that I am not allowed to sudo.
What is wrong and how do I correct it?
Many thanks!
5 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0
- 0