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 Console Foundations Users and Permissions File Permissions

PLEASE I NEED HELP

I WAS USING MY TERMINAL TO DO CONSOLE FOUNDATIONS BUT I DO NOT KNOW WHAT DO I DID TO IT AND NOW I CAN NOT ACCESS TO MY DOCUMENTS ON MY COMPUTER IT SAYS THAT FOLDER AND MY DOCUMENTS CAN NOT BE OPENED BECAUSE I DO NOT HAVE PERMISSION TO IT! CAN SOMEONE HELP ME PLEASE

THANK YOU

2 Answers

Steven Parker
Steven Parker
231,236 Points

Did you mean the documents in your workspace?

If it's documents on your computer this may not help, unless you're running some flavor of Linux.

But for the workspace, you could try this command: "chmod u+rw *". This will make every file and directory readable and writable to you.

Then for directories, you could do this: "chmod u+rwx directory1 directory2 directory3...". Of course give your actual directory names instead of directory1 (and 2 and 3 ... etc).

Hopefully, this will get your access back until you can get more familiar with setting permissions.

Thank you for your response i was able to fix it! =)