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 trialkabir k
Courses Plus Student 18,036 PointsAbout the rw- permissions for the file owner
As the file owner of the file, hello.txt, why don't I want to be able to execute the file like so:
-rwxr----
instead of
-rw-r-----
Or is it because you can't execute or run the file as the owner? If not, why not?
1 Answer
Brandon Ashcraft
10,259 PointsWhile you would typically want to have maximum control over your files as the owner, Hello.txt is a text file, so there is nothing to execute. However, you do have the maximum needed control, since you have read/write capability, whereas User has read-only capability. If you had something like 'itBlowsUpYourHouse.exe', anyone with permission could run the file, including the owner and user, so you would probably want to carefully manage who gets permission.
kabir k
Courses Plus Student 18,036 Pointskabir k
Courses Plus Student 18,036 PointsOk, got it. Thanks, Brandon.