Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 59057  / 2 Years ago, fri, february 4, 2022, 6:24:51

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 ?


More From » permissions

 Answers
3

use



`sudo chmod 755 /path/your/folder`


provide your password



or use this for assigning permissions recursively for sub directories.



sudo chmod -R 755 /pat/your/folder


or open nautilus with permission by



sudo nautilus 


and go to your desired folder ,right click on it and finally change its permissions as per your need.



to see permission allowed use



ls -l


it will show permissions of all the folders in Working Directory.


[#28229] Saturday, February 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
icielight

Total Points: 158
Total Questions: 92
Total Answers: 93

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
icielight questions
;