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.

link|improve this question
feedback

migrated from stackoverflow.com May 18 '11 at 14:49

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 6 down vote accepted

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.

link|improve this answer
chmod 777 Sites/tom/upload/thumbs did the trick. thanks – Tom May 18 '11 at 14:42
1  
@tom, np, dont forget to use -R in case thumbs has subdirectories, unless you don't want to change the permissions on subdirs. – hvgotcodes May 18 '11 at 14:46
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.