• Resolved iansane

    (@iansane)


    Hi,

    I’ve been reading some on the uploads directory permissons. I know how to chmod, chown, etc.

    I still have a question though. When the owner:group is set to user:user as unfotunately is done on my shared host, I have to have the execute permissions set for public (775 or rwxrwxr-x).

    But if I’m on a vps or dedicated server and can set the owner:group to user:www-data would I be able to change the permissions to 774 (rwxrwxr–)? Would wordpress still be able to let users upload images and still be able to create new monthly sub directories without public having write or execute permissions?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter iansane

    (@iansane)

    I think I may have got this figured out. The uploads directory it’s self only needs the x bit for public if on a shared host or for some other reason the directory’s owner:group can’t be set to user:www-data .

    When set the group to www-data I can leave off the x and w bits for public making the permissions rwxrwxr– and each month change old directories to rwxr-xr– since wordpress will not be writing to last months folder any more.

    Then the images themselves only require rw-r–r– .

    This is much better than the 777 I’ve seen suggested all over the place. So I hope I don’t run into a situation where 777 is actually required.

Viewing 1 replies (of 1 total)
  • The topic ‘uploads directory permissions question’ is closed to new replies.