When I write this to give permission to www directory:
zeb@zeb-Lenovo-B570:/var$ chmod 251 www/
zeb@zeb-Lenovo-B570:/var/www$ ls
Its gives error:
ls: cannot open directory .: Permission denied
I want to give permission to www folder so that I put my .php file here.
Help ?
use
provide your password
or use this for assigning permissions recursively for sub directories.
or open nautilus with permission by
and go to your desired folder ,right click on it and finally change its permissions as per your need.
to see permission allowed use
it will show permissions of all the folders in Working Directory.
Use
sudo gives you administrative permission as /var is under root directory.