We rely on some PHP functions to determine if a file/folder is writable (ex.I looked into this and it seems that only the user owner can perform specific filesystem-oriented operations. It this the reason why?
is_writable()
) and it seems PHP has some limitations when it comes to actually knowing if the group level permissions grant the ability to write to the specified file.Many of our users are on shared web hosting and don't understand the permission granularity or know what account owns their files. It is easier for us to state to set it to 777 since that will work in most cases. You are encouraged to set the permissions as low as possible that still allow the desired functionality.I am also wondering why permissions oriented documentation I've seen advises 777 permissions - surely the public owner can be set to 0 at least?
Statistics: Posted by Noxwizard — Sat May 03, 2025 4:54 pm