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 Permissions

kabir k
kabir k
Courses Plus Student 18,036 Points

About 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:


instead of


Or is it because you can't execute or run the file as the owner? If not, why not?

1 Answer

While 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.