Problem with Chmod Command

Problem with Chmod Command

I don't know what is happening

experimentx@workmateX:/var/www$ sudo chmod 0777 -r /var/www/

chmod: cannot access `0777': No such file or directory

experimentx@workmateX:/var/www$ 

4 Answers

Use this:

sudo chmod 0777 -R /var/www/

-R instead of -r.

5

Use "-R" instead of "-r".

From the chmod help:

-R, --recursive change files and directories recursively

0

Also note that the 0 will no longer clear suid/sgid/sticky in recent versions of chmod and you'll soon have to use a symbolic mode (if that's what you're intending to do).

Perhaps going or directing the file in terminal and once you locate file by:

ls

then run the command:

chmod +x filename

from that location I'm sure it will work.

Your Answer

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

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.