: Permissions suddenly changed to '00' on sites images directory A client's site images directory permissions have suddenly changed to 00. This means no one can access the directories content; not
A client's site images directory permissions have suddenly changed to 00. This means no one can access the directories content; not even the browsers. I cannot access the directory or change its permissions via FTP.
What could have caused this? Is there a way to reset the permissions?
More posts by @Murray432
2 Comments
Sorted by latest first Latest Oldest Best
Permissions did not change by themselves, someone (or something) changed it. That could happen multiple ways:
PHP Scripts changing permissions
User changing permissions via FTP (chmod)
The thing is, to change permissions for a file or folder, you need to have write permission on that folder. This allows you to remove permission from yourself (which happened in your case), which sort of locks you out from accessing the files.
To be able to reset the permissions, you need to login as root and set them to be user-writable and group-readable (or group-writable if needed):
$ sudo chown -R u+rw,g+rx path/to/directory
If you do not have root access on your web-server nor any other way to configure reset permissions (like cPanel, but even that might not work), then you need to contact your hosting provider to do it for you.
Not without shell access that I can think of. Unless you have a control panel, then that should allow you to have indirect file level access. You may have to call tech support and ask them to change the protection to something that gives you access to the directory. After that, I would want to know how this changed. You may never know, but I would dig around anyway.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.