problem with chmod command
sudo chmod 0777 -R /var/www/
-R instead of -r.
Use "-R" instead of "-r".
From the chmod help:
-R, --recursive change files and directories recursively
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).
- coreutils bug#8391: chmod setuid & setguid bits
- Red Hat Bug 691466 - [RFE] Enable octal-digit mode for removal of UID/GID/sticky bits
Related videos on Youtube
Santosh Linkha about 1 year
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$
Santosh Linkha over 12 yearswell thanks to you both ... but what the hell happened? I had been using
-runtill now, and suddenly ..
Octavian A. Damiean over 12 yearsThere was no
chmodever, there is only
Pedram over 12 yearsYeah, chmod doesn't have any
Santosh Linkha over 12 yearswell, i had been doing
-runtil i updated my system yesterday .. on version 10.10
Pedram over 12 yearsI don't know what happened in your case but chmod is one the commands that are common between all linux distributions and has nothing to the with a specific version of ubuntu.