Setting chmod 777 on folder using Mac Terminal

I am trying to set the upload permissions on a local folder in my test website.

I'm using Terminal on a Mac and the following command:

chmod 777 thumbs

but I get the following error

chmod: thumbs: No such file or directory

I'm really not all that sure about using Terminal so sorry if I'm not being clear - I'm trying to set up a PHP site locally on my Mac.

2 Answers

you have to be in the directory that contains thumbs. Do an

ls 

to see whats in your current directory. You can also do a

pwd

to see where on the filesystem you are. typically when you log in you are in

/home/yourusername

the thumb directory is not there.

3

While in any location in your terminal type the following

sudo chmod 777 /path/to/your/folder/*

Be sure to be sudo and the /* after folder means that you want to give permissions to any subfolder in the folder

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like