Jump to content

FileRun: fix default permissions


jesta

Recommended Posts

I set up FileRun using @BamaJ13's docker template and ran into the issue that files created/uploaded through FileRun's webUI are readonly to other users and thus can't be modified over for example SMB. I first tried very long to launch the docker with different user:group settings and messing with ACLs but couldn't get it to work. Then I dug long and deep and found an undocumented solution. Here are the two steps needed:

 

  1. add two environment variables in template: "APACHE_RUN_GROUP = users" and "APACHE_RUN_GROUP_ID = 100"
  2. after first run, modify or create file /mnt/user/appdata/filerun/customizable/config.php with following content:

     

    <?php

    umask(012);

     

Then all files/dirs created by FileRun will belong to group "users" and have read and write access for other users of UnRAID. Have fun!

  • Like 1
Link to comment
  • 2 weeks later...
  • 4 months later...

谢谢楼主,找了整整一天,最后在这里解决了问题,如果不输入userid. 那么默认就会是1000权限,然后我修改umask为0112就解决了
但是还有个问题就是我希望让/user-files/这个文件默认创建就是mobody不知道怎么弄,

filerun是个好软件,但是跟nextcloud一样权限问题太让人头大了!!

Link to comment
  • 7 months later...
On 1/26/2022 at 10:52 PM, jesta said:

I set up FileRun using @BamaJ13's docker template and ran into the issue that files created/uploaded through FileRun's webUI are readonly to other users and thus can't be modified over for example SMB. I first tried very long to launch the docker with different user:group settings and messing with ACLs but couldn't get it to work. Then I dug long and deep and found an undocumented solution. Here are the two steps needed:

 

  1. add two environment variables in template: "APACHE_RUN_GROUP = users" and "APACHE_RUN_GROUP_ID = 100"
  2. after first run, modify or create file /mnt/user/appdata/filerun/customizable/config.php with following content:

     

    <?php

    umask(012);

     

Then all files/dirs created by FileRun will belong to group "users" and have read and write access for other users of UnRAID. Have fun!


Thanks for the description. I ran into the exact same issue. Can you please add a screenshot of the variables? I don´t get it correctly, what to add wihtin the variable fields.
Best regards!

Link to comment
  • 1 year later...

Adding those variables into the template and the umask into the config file hasn't worked for me. New folders created from within Filerun are still listed as "UNKNOWN" under owner in Unraid and are read-only on SMB. Anything I'm missing?

Edited by DebrodeD
Link to comment

Fixed the owner issue, the above advice no longer works with the recent update (at least for me), you need to create 4 new variables and set them to these values:
 

Name: Apache Run User

Key: APACHE_RUN_USER

Value: 99

 

Name: Apache Run User ID

Key: APACHE_RUN_USER_ID

Value: 99

 

Name: Apache Run Group

Key: APACHE_RUN_GROUP

Value: 100

 

Name: Apache Run Group ID

Key: APACHE_RUN_GROUP_ID

Value: 100


 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...