Change (Group, World)Write Permissions for A Folder

Status
Not open for further replies.

cachex12

New Member
Messages
1
Reaction score
0
Points
1
Hey, I am a computer science student and I am building a website for a class project. It is a small simple social media application and I need to change permissions for the following folder: public_html/usrdata/photos to allow users to upload a photo. I tried to change the permissions using Cpanel but it keeps changing it back to 755. Can I ask how can I do change the permissions permanently for this folder. Thanks in Advance!
 

lylex10h

Active Member
Messages
982
Reaction score
71
Points
28
That's probably a security setting/feature because it's free, shared hosting.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Max permissions are 755 for directories and 644 for files. However, on an upload, it's your code that's doing the writing, not the user, so 755 isn't a problem.
 
Status
Not open for further replies.
Top