I'm sure you're right. I wasn't trying to imply this was a problem in OMV or Linux... only that EXFAT doesn't work well with them and should be avoided. It took me many, many hours to get to this understanding so I was just trying to save others some time.
I don't know if my problem will translate to anyone else's but just in case it can help others, I was able to resolve my permission problem by reformatting my OMV attached drive to EXT4 and starting over. It was formatted as EXFAT and on both OMV 5 and OMV 6 I was able to r/w from Windows 10 until I restarted OMV. After the OMV restart I could only read from Windows 10.
There are plenty of hints online that OMV / Linux has permission problems with EXFAT. It may be possible to work around them but I was never able to. My advice would be to not use EXFAT. I hope this helps someone.
Help! I'm getting a "You need permission to perform this action" error when I try write to a shared folder using Windows 10 File Explorer. I've been working on this for days going through the forum and web searching for an answer but nothing is working for me. I'm a new Linux and OMV user with some experience running Windows getting nowhere. The only thing preventing me from pulling my hair out is that I'm learning so much!
My use case and environment is I've created an OMV 6.0.27-1 server with all updates applied on a RPi4, 8GB running the 2022-04-04-raspios-bullseye-arm64-lite.img, Debian/Linux 11 image. My media storage attached to the RPi is a WD 8TB 'My Book' drive formatted for EXFAT. This is being accessed by multiple Kodi 19.4 installs running on Amazon FireTV sticks and a Dell 990 Desktop with 16 GB running Win 10 Pro 64b. The FireTV sticks are used for viewing movies and are working fine. The desktop computer sees the shared drives fine and can read files but I can't make any updates. The RPi OS and and OMV were bare metal installs. OMV was installed using the script and procedure in OpenMediaVault-Plugin-Developers / installScript.
When I first installed this, everything worked fine. I was able to access and view movies through Kodi and I was able to update and manage my movies from my desktop. The next day though I was only able to view movies and read files. I couldn't make any updates to my folders from my desktop. The only thing that I know of that changed was I rebooted my computers. I reinstalled the RPi OS and OMV and again, it worked fine until I rebooted. This is the error I get from Windows File Explorer.
I've checked all of my permissions in OMV and believe they're correct i.e. user and group permissions set to r/w, SMB services enabled and browseable, SMB Shares set with Guests allowed and Inherit permissions in addition to everything that's already enabled by default.
Some of the resources I've used to check my configuration and try solutions include:
- Privileges and permissions explained under OMV - excellent overview of how this is supposed to work
- Solving Permission Problems with Openmediavault and Windows - R/W rights confirmed
- [HOW-TO] Connect to OMV SMB shares with Windows 10 and Microsoft Servers - Set Computer Configuration/Administrative Templates/Network/Lanman Workstation/"Enable insecure guest logons" to "Enabled"
- [HOW-TO] Connect to OMV SMB shares with Windows 10 - Added Windows credentials that match my OMV user and my Win 10 user (all are the same).
- OMV General POSIX File System Permission Balance: chmod – chown – setgid - umask concepts - another great overview but beyond my current understanding. Possibly the issue?
- How I solved my file permissions problems (kinda) - adds smb shares extra options to 'correct' flags. I tried this on one of my shares and it didn't help. I'm not sure I did this correctly.
I also installed the ResetPerms plugin in OMV and reset my permissions - no luck. Suspecting maybe Windows wasn't presenting the right credentials I used 'net use' to manually log into my shares and confirmed the credentials are being accepted.
Most of what I've read recommends using EXT4 formatted drives. As mentioned above my drive is formatted using EXFAT. Since I have about 1.5TB of data on it I'm really hoping this isn't the problem and reformatting the drive can be avoided.
I'll continue to plug but I'm struggling so I'm raising my hand and hoping someone can show me something simple I've overlooked. Thanks in advance.
Below are some screenshots of my configuration:
This is my SMB configuration for all shares except for Test_Movies
This is my OMV configuration for my Test_Movie share. Note Extended attributes and Store DOS attributes are enabled and Extra options are added per "How I solved my file permissions problems (kinda)" forum entry. It didn't help me.