Set up an OpenMediaVault SMB share for iPhone photos
By Isaac Griffiths, developer of SMBDrop ·
OpenMediaVault (OMV) turns an old PC, a mini PC or a Raspberry Pi into a NAS with a web interface. Its SMB/CIFS service is Samba underneath, and an iPhone can send photos to it directly. Most problems people hit come from OMV's two layers of permissions, so this guide sets those up carefully.
Disclosure: I make SMBDrop, one of the ways to send photos in step 6. The OMV setup works with any SMB app. Menu names are from OMV 7 and 8.
Step 1: Create a user in the web interface
- Open Users → Users and click Create.
- Add a user such as
iphonewith a password. Save and apply the pending changes.
Create users here rather than with useradd on the command line. OMV's docs point out that a user made in the terminal isn't in OMV's own database, so it won't appear in the permission screens.
Step 2: Create a shared folder
- Open Storage → Shared Folders and click Create.
- Name it, for example
iPhone, and choose the file system. - Select the new folder and open Permissions. Give
iphoneRead/Write.
OMV checks two things: the shared folder permissions you just set (the service level), and the ordinary Linux permissions on the directory (the file system level). Access needs both. A new shared folder is owned by root:users with mode 775 by default, and OMV users are in the users group, so the defaults work. If you've changed ownership or used Access control list on the folder, check it.
Step 3: Turn on SMB and add the share
- Open Services → SMB/CIFS → Settings, tick Enabled, save and apply.
- Open Services → SMB/CIFS → Shares, click Create, and pick the
iPhoneshared folder. The defaults are fine to start with. Leave Public set to no. - Save and apply.
Current Samba versions already refuse SMB1 by default, so there's no protocol setting to change for the iPhone.
Step 4: Find the address
OMV's dashboard and Network → Interfaces show the IP address. Give the machine a DHCP reservation in your router, or a static address in OMV, so it doesn't move.
Step 5: Test with the Files app
- In Files, open Browse → ⋯ → Connect to Server.
- Enter
smb://and the address, choose Registered User, and sign in asiphone. - Open
iPhoneand create a folder or save a file.
Step 6: Send original photos with SMBDrop
- In SMBDrop, add a share with the OMV address and the
iphonesign-in. - Tap Find Shares, pick
iPhone, run Test Connection and save. - Send photos and videos, or turn on Automatic Backup.
The files arrive as the originals, and Live Photos keep both the photo and the video.
If the share is read only on the iPhone
First check it's really writable: sign in from a computer as iphone and create a folder. If that fails, go back over steps 2 and 3. If the computer can write and the iPhone can't, it's the iOS 18 behaviour described in the read-only share guide. On OMV, people have reported two fixes:
- Adding
vfs objects = catia fruit streams_xattr(or juststreams_xattr) to the Extra options of the SMB/CIFS settings or the share. This is the usual Samba fix. - One OMV user found that didn't work for them, but turning on Time Machine support on the share did. As far as I can tell, that option adds Samba's Apple (fruit) settings to the share, which would explain why it helps.
Afterwards, eject and reconnect on the iPhone.
Other things to check
- Several people writing to one folder: OMV's share option Inherit permissions keeps new files and folders consistent.
- Recycle bin: if you turn it on for the share, deleted files stay on disk until it's emptied.
- Backups of the backup: OMV makes it easy to keep a single copy on one disk. Add a second copy, for example with the rsync or snapshot tools OMV offers, or an external disk.
Running OMV on a Raspberry Pi has its own power and drive caveats, covered in the Raspberry Pi Samba guide.
FAQ
Can an iPhone connect to an OpenMediaVault SMB share?
Yes. Create a user and shared folder in OMV's web interface, enable SMB/CIFS, add a share for the folder, and connect from the Files app with smb:// and the OMV address as a Registered User.
Why can my OMV user sign in but not write?
OMV needs both the shared folder permission (Read/Write for that user) and the Linux file system permissions on the directory. Check both, and make sure the user was created in the web interface.
How do I fix a read-only OMV share on iPhone?
If a computer can write with the same account, add vfs objects = catia fruit streams_xattr to the SMB Extra options, or turn on Time Machine support on the share, then eject and reconnect on the iPhone.
Do I need to turn on SMB1 in OpenMediaVault for an iPhone?
No. The iPhone uses SMB2 or SMB3, which current Samba versions on OMV support by default.
More guides
- iPhone Files app says the SMB share is read only: how to fix it
- Use a Raspberry Pi as an iPhone photo backup target (Samba)
- How to send iPhone photos and files to Unraid or TrueNAS over SMB
- ZimaOS and CasaOS: send iPhone photos to an SMB share
- How to send iPhone photos to your NAS over Tailscale, without opening ports
