• Hi,

    I was wondering if there’s a way to change the default access permission when a directory is created? By default, mine is 755 but I’d like it to be 775 for newly created directory and recursively applied.

    I can change it manually, but it’s not realistic in my situation.

    Does File Away or the server controls that? Is there a way to tweak it?

    Thank!

    https://wordpress.org/plugins/file-away/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Phil Brunet

    (@fabrunet)

    Can I just go inside class.fileaway_management.php and change all 0755 for 0775? Any downsides in doing so?

    *Edit : I just tried it and it doesn’t work, probably not the way to go

    Plugin Author thomstark

    (@thomstark)

    No downsides. You’ll have to do that.

    Thread Starter Phil Brunet

    (@fabrunet)

    Hi Thom, thanks for your input.

    I tried uploading some files after making those changes to management.php and the directories permissions were still 0755

    This is the shortcode I’m using to display the upload form on the website :

    [fileup sub=”fa-firstlast/folder-xyz/directory-xyz/” makedir=”true” matchdrawer=”true” uploadlabel=”Upload”]

    Is it possible to set the permissions for all sub directories (firstlast, folder-xyz, directory-xyz) to 0775 when creating them?

    Plugin Author thomstark

    (@thomstark)

    If you’re changing the source code to 0775 and it still creates them as 0755, that’s not something I can do much about. If you tell php to do one thing, and you get different results, it’s probably not a problem with the function itself.

    Thread Starter Phil Brunet

    (@fabrunet)

    Yes I understand that, I was just wondering if I was missing something obvious.

    Thanks!

    Thread Starter Phil Brunet

    (@fabrunet)

    Just for reference, I think my problem was umask()

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Default access permission for directory’ is closed to new replies.