Shane Israel Posted June 15, 2022 Share Posted June 15, 2022 Ever since I upgrade from 6.9.2 to 6.10 I have had constant issues when new folders get created in my seedbox share. I'm currently on 6.10.3-rc1 since I thought maybe there would be a fix in a newer version. I have an lftp script that downloads files from my seedbox to /mnt/user/seedbox/completed/tv-sonarr the lftp script is run via the User Scripts plugin on a schedule and starts on array start. every time it downloads something in a new folder, Sonarr/Radarr can not grab it and give this error. [v3.0.8.1507] System.UnauthorizedAccessException: Access to the path '/downloads/completed/tv-sonarr/[neoHEVC+ DB] Kaguya-sama - Love is War [Season 1 + 2 + OVA] [BD 1080p x265 HEVC AAC] [Dual Audio]/Specials/Kaguya-sama - Love is War - S00E01 - (S2O1 OVA).mkv' is denied. ---> System.IO.IOException: Permission denied Here are the permissions of my seedbox share. Here are the permissions of stuff being download to the appropriate folder by my lftp script. As you can see, they are getting set as root:root rather than nobody:users. Here are the Sonarr/Radarr puid/guid's which I haven't touched I can fix this termporarily by running "chown -R nobody:users" on the tv-sonarr directory and then Sonarr is completely happy. But that only solves the problem temporarily. The next time something new gets downloaded its the same problem all over again. I've been searching and googling this forum for 2 weeks now trying to find a fix but I have not found anything. Is this a bug in 6.10 that does not yet have a fix? Can somebody please help me. Quote Link to comment
itimpi Posted June 15, 2022 Share Posted June 15, 2022 Sounds like the script is running as root, so after downloading the files it needs to set the correct permissions on the files? I know I do this is scripts I run under User scripts. Quote Link to comment
Shane Israel Posted June 15, 2022 Author Share Posted June 15, 2022 23 minutes ago, itimpi said: Sounds like the script is running as root, so after downloading the files it needs to set the correct permissions on the files? Thats what I was thinking but its running via the Users Scripts plugin and as far as I know it didn't run as root on 6.9. How would I change the user that runs the script? Quote Link to comment
itimpi Posted June 15, 2022 Share Posted June 15, 2022 3 minutes ago, Shane Israel said: Thats what I was thinking but its running via the Users Scripts plugin and as far as I know it didn't run as root on 6.9. How would I change the user that runs the script? Perhaps there is a bug in 6.9.2 in that is does not correctly set permissions to the user running the script for locations under /mnt/user so it only worked by accident? I'll have to do some checking to see. Quote Link to comment
Shane Israel Posted June 15, 2022 Author Share Posted June 15, 2022 1 minute ago, itimpi said: Perhaps there is a bug in 6.9.2 in that is does not correctly set permissions to the user running the script for locations under /mnt/user so it only worked by accident? I'll have to do some checking to see. Thank you. If in fact it was pure luck that it was working correctly in 6.9 so be it. Its not like I can't add the chown command to the end of the script after each run haha. I guess that would work but it doesn't feel like a very elegant solution. Quote Link to comment
itimpi Posted June 15, 2022 Share Posted June 15, 2022 51 minutes ago, Shane Israel said: Thank you. If in fact it was pure luck that it was working correctly in 6.9 so be it. Its not like I can't add the chown command to the end of the script after each run haha. I guess that would work but it doesn't feel like a very elegant solution. Perhaps a simpler solution would be to use the 'su' command to run the download as the desired user - another thing I need to check out. If this does turn out to be the case then maybe a request for an easy way in CA User scripts to specify the user the script should run as might be the best long term solution? EDIT: Just remembered that Unraid is not set up to allow the 'nobody' user to run a shell so maybe the chown/chgrp/chmod type solution will be required. Quote Link to comment
Meannekes Posted June 15, 2022 Share Posted June 15, 2022 (edited) i have the same issue but not with a script, for me this happens if i move/copy or create anything with Dynamix File Manager Plugin. Edited June 15, 2022 by Meannekes Quote Link to comment
Shane Israel Posted June 15, 2022 Author Share Posted June 15, 2022 6 hours ago, itimpi said: EDIT: Just remembered that Unraid is not set up to allow the 'nobody' user to run a shell so maybe the chown/chgrp/chmod type solution will be required. That is the case, I tried that and it would not work. 5 hours ago, Meannekes said: i have the same issue but not with a script, for me this happens if i move/copy or create anything with Dynamix File Manager Plugin. I'm assuming this was not an issue in 6.9 then? Quote Link to comment
Meannekes Posted June 17, 2022 Share Posted June 17, 2022 (edited) not that i´m aware of. first noticed that with 6.10.2 after i was not able to access my files with my Oppo Player. Edited June 17, 2022 by Meannekes Quote Link to comment
JorgeB Posted June 17, 2022 Share Posted June 17, 2022 Some good info about permissions issues after updating to v6.10 here: https://forums.unraid.net/topic/123901-plex-issues-upon-upgrade-to-6101/?do=findComment&comment=1138715 Quote Link to comment
Flick Posted August 7, 2022 Share Posted August 7, 2022 Did anyone ever find an elegant solution for this? I just went from 6.9.2 to 6.10.3 and now I'm having the same issue with Userscripts. Files/folders being created by a downloader script have root/root ownership instead of the prior nobody. Playing havoc with my auto-processing setup. Thanks. Quote Link to comment
shimi269 Posted May 1, 2023 Share Posted May 1, 2023 Any updates on this? I'm having the exact same issue, and still can't find a remedy for this yet Quote Link to comment
JorgeB Posted May 1, 2023 Share Posted May 1, 2023 You can try this, backup appdata first. Quote Link to comment
Recommended Posts
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.