ashkasto Posted October 2, 2023 Share Posted October 2, 2023 I am very new to unraid and Linux. Trying to follow and understand the server setup. Came across my share folders and other folders. I frequents moves files from my windows pc to the unraid server. I am having errors moving files saying I do not have permission. When i see the owner of folder it says nobody. I change owner to my root user name in unraid and it work. Only thing that happens is some time later or maybe after a reboot of the unraid server the folder goes back to nobody and same issues happens. This happens also on docker containers i have installed as well. Do I need to change my user permission somewhere? What is the nobody owner? Anywhere where is can find more details on this issue. Thank you Quote Link to comment
Solution itimpi Posted October 2, 2023 Solution Share Posted October 2, 2023 The ‘nobody’ user is normally the correct user. Have you tried running Tools->New Permissions against a share which has these problems. 1 Quote Link to comment
ashkasto Posted October 2, 2023 Author Share Posted October 2, 2023 I have not trying to run Tools->New Permissions let me try this thanks What if I changed the folders to root of my current root user, will this cause issues in the future? Thanks Quote Link to comment
itimpi Posted October 2, 2023 Share Posted October 2, 2023 Just now, ashkasto said: I have not trying to run Tools->New Permissions let me try this thanks What if I changed the folders to root of my current root user, will this cause issues in the future? Thanks Yes it might - difficult to tell. The tool I mentioned will change the permissions back to those Unraid expects. Quote Link to comment
ashkasto Posted October 2, 2023 Author Share Posted October 2, 2023 I just performed it for all my disks and shares. Thanks so much. hopefully this resolves the issue Quote Link to comment
ashkasto Posted October 5, 2023 Author Share Posted October 5, 2023 So as a follow up, I have noticed when using new permissions under tools for the shares folders everything's works again for a short period of time. Then suddenly same problem reoccurs. Also, the radarr container then gives errors that is can not relocate the file as well. My windows folder accessing the unraid server also block me from deleting or moving folders. Keeps reverting back after it is fixed for some reason Appreciated any help Quote Link to comment
Frank1940 Posted October 5, 2023 Share Posted October 5, 2023 You need to identify what Docker containers or VM's are writing directly to the array. Then you have to check to see what owner and group each one is using when it does its writes. I always using the following Linux/Unix command in the GUI Terminal to check exactly what the owner, group and the permissions are on each file and directory: ls -al /mnt/user0 This will typically give an output that looks something like this: Then you can use the up, down, left, right arrows, Home and End keys to recall previous command and edit them. Looking at the screen capture above, if the problem files are in the 'Media' directory, I would push the <up-arrow> key to get the previous command and add '/Media' onto it-- as shown below: ls -al /mnt/user0/Media Directory entries should look like this: And files entries look like this: When you find some that don't look like this, figure out what Docker or VM is creating those files or directories. You should posted questions about making the proper changes to get things set up properly in the support thread for that application. 1 Quote Link to comment
Frank1940 Posted October 6, 2023 Share Posted October 6, 2023 Let me amend the above reply. You may find the the 'owner' may be someone besides 'nobody'. This is ok as long as it is one of the Share Access user that have been set up. IIRC, Theses Share Access users are automatically included as member of the users 'group'. If you look at the permissions in the example of what Unraid uses when it writes any file or directory, the 'group' has the same access permissions as the 'owner'! So the actual owner is not a problem is this situation as far as permissions go. IIRC, this is not the standard or, possibly, even the recommended permission setup for most Linux distributions. From what I have seen these defaults usually have reduced privileges for 'group' and 'other'. Quote Link to comment
ashkasto Posted October 7, 2023 Author Share Posted October 7, 2023 (edited) Frank1940 thank you for the info. I cant seem to find which docker or group is causing it. I receive info in sonarr today that "Series title mismatch, automatic import is not possible" and i was able to manually grab or edit and delte movie through windows 11 to my unraid server. Then radarr had error message as this... So I use windows pc to see the folder in my data/media/movies and find the movie folder it is empty I check my usenet/complete/movies folder a see the movie fodler and movie i hold a drag like i normally do and windows gives this error: I use your instruction and open a command prompt in uraid and can not find the empty folder in my data/media/movies folder I checked the usenet folder and this is what showed up I can not explain why every12-24 hours I am having limited access to the folder managements on the unraid server. I still do not know what docker group to ask this question to as well as it seems to happen frequently with a few. makes me wounder if my unraid global setting are incorrect somewhere. needless to say I have tried to disable all docker container and reset permissions for disks and shares, which temporarily fixes it. My PUID is 99, PGID is 100, UMASK varies 002, 022 i read somewhere that umask may need to be 000 but I do not want to mess with that unless this is for sure an issue Thank you Edited October 7, 2023 by ashkasto Quote Link to comment
ashkasto Posted October 7, 2023 Author Share Posted October 7, 2023 On 10/2/2023 at 10:54 AM, itimpi said: Yes it might - difficult to tell. The tool I mentioned will change the permissions back to those Unraid expects. itimpi it is still happening, that fix was just temporary. Any other suggestions please? Quote Link to comment
itimpi Posted October 7, 2023 Share Posted October 7, 2023 33 minutes ago, ashkasto said: itimpi it is still happening, that fix was just temporary. Any other suggestions please? If the files are being created via a docker container then you will need to find a way to get the container to create the files with the correct permissions in the first place. 1 Quote Link to comment
Frank1940 Posted October 7, 2023 Share Posted October 7, 2023 1 hour ago, ashkasto said: I checked the usenet folder and this is what showed up Remember that I said that all Share Access user were members of the 'users' group. ('nobody', IIRC, is actually assigned to the anonymous, or guest user, who does not have a Share Access login. Today, this type of user is considered a security rick and you have to set up special permissions-- for both Windows and recent Unraid versions --to allow them!) 31 minutes ago, itimpi said: If the files are being created via a docker container then you will need to find a way to get the container to create the files with the correct permissions in the first place. This is your solution to this problem. Figure which Docker container(s) are generating these files and directories. Hopefully, there will be a setting in their configurations settings. (Observe that there is a Basic and Advance switch on many Dockers in the up right corner.) You will be looking for the UMASK, PUID, and GUID settings. The GUID for 'users' is 100 and the PUID for 'nobody' is 99. Google for Info on how to set UMASK... If you need more assistance than this, post in the support thread for the Docker that you are using... 1 Quote Link to comment
zypherion Posted September 12 Share Posted September 12 Sorry to necro this thread, but I had the same issue with a filezilla container I was using to migrate data from my old NAS to unRAID. Running the new permissions tool on the files I'd already transferred fixed those and correcting the UMASK in the container resolved the issue for new transfers. So thanks! 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.