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 trial

Development Tools Console Foundations Users and Permissions File Ownership

Nathan LaBrake
Nathan LaBrake
24,088 Points

Why does it keep saying "mike is not in the sudoers file. This incident will be reported." i cannot follow along.

It comes up with this error any time I write a sudo command when logged in as mike. It doesn't do it for treehouse. I checked online for fixes but they are not working.

2 Answers

Andrew McCormick
Andrew McCormick
17,730 Points

not every user is allowed to use sudo. If you need to switch to user treehouse then just switch user.

su - treehouse

Robert Cunningham
Robert Cunningham
7,841 Points

I was having the same problem. I ended up changing back the permissions to 777 from user mike and then I logged on as user treehouse to change the owner back to treehouse. Once the owner was changed, I updated the permissions back to where they should be.

Harish Yerra
Harish Yerra
10,031 Points

Thanks! That worked for me....