Ubuntu: Chmod breaks folder access / file access



Question:

My servers are currently running a fresh install of Ubuntu 16.04 server, no direct nor indirect system changes have been made.

A folder/file is completely accessible when created, but if I use chmod to make the slightest change, I completely lose access to that folder, and the only way to access it is through root.

sudo chmod -r -777 will make the folder completely useless, and there is no way for me to access it.


Solution:1

By chmod -777 you set the access rights to --------- i.e. you remove all access rights. Try chmod 777 and your file or folder will be accessible again.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »