Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FileRun: fix default permissions

Featured Replies

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!

  • 2 weeks later...

I had some similar issues: In addition to step 1 from above, I also had to empty the "system/data/temp/smarty" folder

  • 4 months later...

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

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

  • 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!

  • 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

I can fix the permissions issue by setting the umask to 000, but that doesn't fix the owner issue.

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


 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.