Active8 years, 4 months ago
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
Tip for future readers: You can type chmod 777, leave a space after it, and then drag the file or folder from Finder into Terminal.Terminal will fill in the correct path for you. Not only does this eliminate the possibility of typos, it spares you having to manually escape any spaces that might exist in the name. In Short: chmod +x on a file (your script) only means, that you'll make it executable. Right click on your script and chose Properties - Permissions - Allow executing file as program, leaves you with the exact same result as the command in terminal. This is kinda over-engineered for this particular example. Try this instead: chmod -R 755. This will give the owner rwx and the group and world r-x in on every file in the current directory and all subdirectories.
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.
TomTom
Chmod Mac Os X 10 12 Download Free
migrated from stackoverflow.comMay 18 '11 at 14:49
This question came from our site for professional and enthusiast programmers.
1 Answer
you have to be in the directory that contains thumbs. Do an
Mac Os X Command Line Chmod
to see whats in your current directory. You can also do a
to see where on the filesystem you are. typically when you log in you are in
![Chmod Mac Os X Chmod Mac Os X](/uploads/1/2/4/8/124896045/547603294.png)
/home/yourusername
the thumb directory is not there.
hvgotcodeshvgotcodes61311 gold badge66 silver badges1515 bronze badges
Not the answer you're looking for? Browse other questions tagged macterminalchmod or ask your own question.
![755 755](/uploads/1/2/4/8/124896045/428332630.png)
khock19 wrote:
and I get no errors. But then when I type todo.sh it returns
-bash: todo.sh: command not found
You don't have problem with chmod. The problem is that the directory containing that file isn't in your 'path'. You can see this by typing the command 'echo $PATH' (without the quotes). There are three ways to deal with this: (1) Invoke that command this way: ./todo.sh . (That's what the 'Quick Start Guide' for that script tells you to do in step 5.) That tells bash to look for that command in the current directory. (2) Presuming you're positioned in the directory where that script file is, add that directory to the path using this command: export PATH=`pwd`:$PATH . You'll have to invoke that command every time you launch a new Terminal session unless you update your bash profile to include a command to set the PATH automatically. (3) Put the file todo.sh in one of the directories that's already in the PATH, such as /usr/local/bin.
Chmod Mac Os X 10 9 Download
Matlab for windows download. Dec 23, 2010 11:27 AM