Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,729 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....