Hello,
First, thank you so much for providing a simple and extremely useful utility. I've configured the filebrowser as a simple solution with some additional nginx/bash ways to provide access to user Home directory, so far all good. From what I see, when users create/upload file, I was able to change the ownership and permissions via the command runner
cmds add "after_upload" 'chown -R $USERNAME:$USERNAME $FILE'
cmds add "after_upload" 'chmod 600 $FILE' # The file has execute bit by default , forcing the permission change.
cmds add "after_copy" 'chown -R $USERNAME:$USERNAME $FILE'
cmds add "after_copy" 'chmod 600 $FILE'
However when we create a directory from the UI, these options do not work, is create directory a different event ? any help is much appreciated.
I'll try few other ways to see if I can change the ownership, but if there is anything the code provides like above would be great.
Hello, First, thank you so much for providing a simple and extremely useful utility. I've configured the filebrowser as a simple solution with some additional nginx/bash ways to provide access to user Home directory, so far all good. From what I see, when users create/upload file, I was able to change the ownership and permissions via the command runner
However when we create a directory from the UI, these options do not work, is create directory a different event ? any help is much appreciated.
I'll try few other ways to see if I can change the ownership, but if there is anything the code provides like above would be great.