Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

hi i am using mac osx i tried to login sudo without password i followed this tutorial and edited this code in sudoers file

chmod +w /etc/sudoers
USERNAME ALL=(ALL) NOPASSWD: ALL
chmod -w /etc/sudoers

but now when i am trying to run any script with sudo command or trying to sudo -i its giving this error

user is not in the sudoers file.  This incident will be reported.

this only user am using means its root user and i tried this also

MacBook-Air:~ exepaul$ sudo chmod +w /etc/sudoers Password: exepaul is not in the sudoers file. This incident will be reported.

so please help me ;(

share|improve this question
    
Is your user account definitely an administrator of the mac? (regardless of the sudoers file)? – BSUK Feb 22 at 8:36
    
Sounds like you failed to to follow this instruction "Replace USERNAME with your short username" – TheDarkKnight Feb 22 at 15:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.