Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

1 Answer 1

up vote 8 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.

share|improve this answer
    
chmod 777 Sites/tom/upload/thumbs did the trick. thanks –  Tom May 18 '11 at 14:42
2  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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