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

Sean Flanagan
Sean Flanagan
33,232 Points

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

Hi.

I got the above message when I typed in Mike's password. It felt a bit intimidating. What should I do please?

Sean

2 Answers

So, I am new to this too and hoping I don't steer you down the wrong track here, but I think you needed to exit out of mike. Earlier the teacher mentioned that instead of using su to switch back to the user named treehouse, you can type exit to exit the mike session that you're currently in. Mike isn't allowed to sudo (using sudo basically gives you admin privileges I think) but treehouse is allowed to sudo. So, switch back into treehouse and then you can take the file back off mike using:

sudo chown treehouse:treehouse hello.txt

Thank you this worked!