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 trial

Development Tools Git Basics Getting Started With Git Committing Changes

Alex Forseth
Alex Forseth
8,017 Points

When I try to save the readme file in my mac osx terminal the permission is denied. What Gives?

When I try to edit the readme file and save it I am unable because I do not have "permission " I get the following:

[Error writing README: Permission denied ]

Any help would be greatly appreciated.

Thanks,

1 Answer

… run the command from your home directory (~/), then you should never have permission issues … also you could execute the command using ‘sudo’ … the sudo command executes the commands which follow it with 'superuser' or 'root' privileges … but I’d prefer the first way, since you are not accessing core components and sudo should always be used as the last resort … If you are still having problems you can check the permissions on the file by running ls -l while in the same directory as the readme file … there you will see the permissions … If you want to add execute rights to this file (if needed) ... execute chmod 755 readme.txt and that permissions portion would become executable …