Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrian Van Skiver
1,169 PointsChanging permissions on etc host/No valid sudoers
When I set up my local host file for workbench I get permission denied. Ive read a few things on Mac support, but I am unable to find the file with the permissions. Not sure what I need to do. Im stuck on the second to last video on setting up Server and Client.
sudo cp/usr/local/mysql/support-files/m
sudo: can't open /private/etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
Any help or direction would be appreciated.
1 Answer
James Barnett
39,199 PointsAccording to Google, there's an issue with your permissions, here are the commands to enter to fix the issue.
- Enable root account
- Change user to root
su -
Password: <enter root password>
- Fix the execute permissions on the root folder (e.g.
/
)chmod g+x /
source: http://verveguy.blogspot.com/2013/01/sudo-fails-mac-os-x-mountain-lion.html
Brian Van Skiver
1,169 PointsBrian Van Skiver
1,169 PointsThank you James I am getting this in response...
su: Sorry unknownec3586327630:~ brianvanskiver$