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

  1. Open Users → Users and click Create.
  2. Add a user such as iphone with 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

  1. Open Storage → Shared Folders and click Create.
  2. Name it, for example iPhone, and choose the file system.
  3. Select the new folder and open Permissions. Give iphone Read/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

  1. Open Services → SMB/CIFS → Settings, tick Enabled, save and apply.
  2. Open Services → SMB/CIFS → Shares, click Create, and pick the iPhone shared folder. The defaults are fine to start with. Leave Public set to no.
  3. 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

  1. In Files, open Browse → ⋯ → Connect to Server.
  2. Enter smb:// and the address, choose Registered User, and sign in as iphone.
  3. Open iPhone and create a folder or save a file.

Step 6: Send original photos with SMBDrop

  1. In SMBDrop, add a share with the OMV address and the iphone sign-in.
  2. Tap Find Shares, pick iPhone, run Test Connection and save.
  3. 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:

Afterwards, eject and reconnect on the iPhone.

Other things to check

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

Try SMBDrop

Send original photos, videos and files from your iPhone straight to your own SMB share. One purchase, no account, no subscription.

Download SMBDrop on the App Store £9.99 once · no subscription · iOS 17+