August 24, 20214 yr Hi folks I am happy choosing Unraid instead of a oob NAS some years ago but I am currently faced with a very annoying issue. Cache drive is used and configured to move the files to HDDs nightly. When I am working on my documents, especially Excel, I daily get permission issues as soon as I am trying to save the file. I get the message from Windows that I have no permissions to access this folder/file. When I check the permissions on console, I can see that the permissions changed to "drwxrwx---+", before it was "drwxrwxrwx". To solve this, I have to modify the rights with "chmod 777". It seems to be similar like this post: I already tried to remove ACL as mentioned there but did not solved the issue. I think I could isolate the issue to the cache drive. I put the files I work daily with to a share where only one HDD is included and Cache drive is excluded, no issues. No changes where made on the Cache drive hardware and no changes as I can remember on Unraid. The only thing I can remember which should be in the timeframe of the issue occuring is that I had to reset my main computer to worksettings and setting it up new. My first thought was that it is connected to this but I checked with another computer and faced the same issues. Hope you could help me. Logfile attached, issue occured today on 24th of August. Thanks in advance! syslog Edited August 24, 20214 yr by Jules0815
August 24, 20214 yr Community Expert Go to Tools-Diagnostics and attach the complete Diagnostics ZIP file to your NEXT post in this thread
August 24, 20214 yr Author Thanks for replying so fast Diagnostics ZIP attached tower-diagnostics-20210824-1227.zip
August 24, 20214 yr Community Expert 4 hours ago, Jules0815 said: permissions changed to "drwxrwx---+" What is owner for a file that has this problem?
August 25, 20214 yr Author The user I created which has the share connected via SMB on Windows as a network drive. I tested the issue now with one of the files. The permissions on the file did not change, what changed is the permission on the Main folder on the share: "drwxrwx---+ 1 nobody users 14 Aug 23 16:05" The files are located on the Share "Data", subfolders are like "Documents"/"Excel". When the issue occurs, permissions change on folder Documents and subfolder Excel to drwxrwx---+. The nobody user thing was a previous try to fix the issue as I thought the issue is located to the user. The file itself is owned by the user for SMB access even after the issue.
August 26, 20214 yr Author Changed ownership of folders and files of all subfolders and files of the Share "Data" back to the SMB-user
August 26, 20214 yr Community Expert 50 minutes ago, Jules0815 said: Changed ownership of folders and files of all subfolders and files of the Share "Data" back to the SMB-user Interesting ----- What are the present permissions (total string including owner/group)? Did this fix the problem? A more general question. I had a look at the file /etc/group and found that the the group users had no members. This would mean that a user, SMB-user, would have to gain access using the 'Other' permissions. But these are now "drwxrwx---+"! So I am assuming that is why permission is being denied. Does anyone know how this permission setting is occurring? Is it on the Windows side of the equation? @Jules0815, on your Windows PC, right click on the mapped drive and select Properties. Now select the Security Tab. Give us screenshots for the 'Group or user names' of Everyone nobody and users showing us the permissions for these three groups/users. Edited August 26, 20214 yr by Frank1940
August 27, 20214 yr Author Hi Frank1940 Strange behaviour ... I get no issue in Windows anymore but permissions change anyhow from all folders leading to the file from drwxrwxrwx 1 jules users to drwxrwx---+ 1 jules users and the file itself to -rw-rw----+ 1 jules users But no error in Windows regarding access. Permission screenshots attached. Everyone = jeder, my windows is in german. jules is the SMB user which should have full persmissions. I am wondering a bit how many users and groups have permission. What is that 3006 group? Thanks in advance permissions.zip Edited August 27, 20214 yr by Jules0815
August 27, 20214 yr Community Expert Twenty years ago I had a year of College German in preparation for a visit to Germany to visit my Wife's relatives. I can assure you that your English will be better than my German! 🙂 However, I am attaching what my settings are I am not sure why you ended up with your settings. One thing to remember is that you want to set the security for share on your Unraid server on the server side of the equation and not on the Windows side. (Adding security on the Windows PC for a mapped drive is not a topic that I am really that familiar with. But I suspect that it can have some unintended consequences on the Unraid server.) What I have set for permissions on my mapped drive are as follows. The three Group or users marked have the permissions set (by clicking the circled 'Edit' button) to allow the full access to the share. What the user is actually allowed to do is controlled by the permissions granted to (SMB) users on the Unraid Server! @Batter Pudding and I put together a set of instructions on setting up secure sharing using Unraid and Windows. You can find these instructions in the first post of the following thread: https://forums.unraid.net/topic/110580-security-is-not-a-dirty-word-unraid-windows-10-smb-setup/ @Batter Pudding is an Windows IT consultant and he suggested using this approach. One thing it does do is to keep the owner/group and the permissions on the Unraid side to the standard settings. Spoiler Spoiler
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.