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 trialrajbee
6,657 PointsNeed to understand switch user
su mike
mike@ip-10-30-202-111-119: /home/treehouse
Why are we still in treehouse home directory, even after we login to mike's account ? Shouldn't we be in mike's account instead and not be able to access treehouse home (for security) ?
2 Answers
Melissa Hill
8,241 PointsHi There, by looking at the permissions that are set-up for /home/treehouse it looks like it has read access for any user, so Mike can still be in the directory.
From /home if you run ls -l you can see that the treehouse directory has the following permissions: drwxr-xr-x 12 treehouse treehouse
Mike isn't the owner, so he can't write, but he is "other" so he has r-x permission.
-First answer on a forum, I hope it's right :)
Ted Sumner
Courses Plus Student 17,967 PointsI believe Melissa is correct.
Melissa Hill
8,241 PointsThanks for checking, Ted! I appreciate it.
Ted Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsEdited from comment to answer.