Mobile app version of vmapp.org
Login or Join
Murray432

: 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

@Murray432

Posted in: #Ftp #Permissions

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?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray432

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sent6035632

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.

10% popularity Vote Up Vote Down


 

@Jamie184

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme