ZimaOS and CasaOS: send iPhone photos to an SMB share

By Isaac Griffiths, developer of SMBDrop ·

ZimaBoard and ZimaCube owners usually run one of IceWhale's two systems: ZimaOS, the newer NAS-style OS, or CasaOS, the home-server dashboard that also runs on Raspberry Pis and ordinary Linux machines. Both can share folders over Samba, and an iPhone can send photos there. The big difference is passwords: ZimaOS can protect a share with an account, while CasaOS shares are open to anyone on your network unless you change that by hand.

Disclosure: I make SMBDrop. It signs in with a username and password, so the password-protected setups below are what it needs. The Files app can use a guest share too, but I wouldn't keep photos on one.

ZimaOS

Share a folder with a member

Current ZimaOS versions support Samba members (named accounts with passwords), guest access, and Read or Read & Write permission per share. Early versions only had guest sharing, so update first if you don't see these options.

  1. If you don't have one yet, add a member account to use from the iPhone.
  2. Open ZimaOS's Files app, select the folder for your photos, and choose to share it over Samba.
  3. In the sharing controls, assign the member with Read & Write and leave guest access off.
  4. Save. ZimaOS shows the address to connect to, in the form smb://ZIMAOS_IP/SHARE_NAME.

If the share turns out read only from other devices, Zima's own troubleshooting points to the same place: check the member is assigned to the share and set to read and write, not read only.

Connect from the iPhone

  1. In Files, open Browse → ⋯ → Connect to Server and enter smb:// and the ZimaOS IP address.
  2. Choose Registered User and enter the member's name and password. Zima's docs specifically tell ZimaOS users to pick Registered User.
  3. Open the share and save a test file.

Zima's documentation notes that connecting without credentials makes the system fall back to an anonymous user, and that the folder then appears blank. If a share looks empty, check you signed in as the member.

CasaOS

The default: open guest shares

When you share a folder from the CasaOS Files app, it's shared with guest access. Anyone on your network can see it, and there's no option in the dashboard to add users. That's convenient for media, and not where I'd put a photo library.

Adding a password

This needs a terminal, ideally over SSH from another computer. One guide warns that the CasaOS web terminal can mangle some password characters.

  1. Set a Samba password for a Linux user on the machine: sudo smbpasswd -a youruser. This password is separate from the Linux login.
  2. CasaOS keeps its share definitions in /etc/samba/smb.casa.conf. In the block for your share, change it to require that user:
    public = no
    guest ok = no
    valid users = youruser
    read only = no
  3. Restart Samba with sudo systemctl restart smbd.
  4. Keep a copy of your edited file. People have found that creating a new share in CasaOS rewrites this file and undoes their changes.

Make sure youruser can write to the folder on disk as well (ls -ld on the folder shows who owns it). If you'd rather avoid this by-hand setup, a plain Samba config like the one in the Raspberry Pi guide gives you full control, and OpenMediaVault gives you a web interface for users. See the OpenMediaVault guide.

Connect from the iPhone

Same as ZimaOS: smb:// and the IP address in Connect to Server, Registered User, and the user and Samba password you set.

Sending photos with SMBDrop

  1. In SMBDrop, add a share with the Zima or CasaOS IP address and the member or Samba user's sign-in.
  2. Tap Find Shares, pick the share, run Test Connection and save.
  3. Send photos and videos, or turn on Automatic Backup.

Files arrive as originals, Live Photos keep both halves, and a file with the same name is never overwritten.

Troubleshooting

Read only from the iPhone, writable from a computer

That's the iOS 18 behaviour covered in the read-only share guide. On CasaOS, adding vfs objects = catia fruit streams_xattr to the share or [global] section is the usual fix. On ZimaOS, check the member's permission first.

The share looks empty

You're probably connected as a guest. Eject the server, remove it from Recent Servers, and reconnect as a Registered User. Changing a saved SMB login covers the stubborn cases.

Can't connect at all

Check the Samba service is running and the iPhone is on the same network. See Files app can't connect to server.

FAQ

Can I password-protect a ZimaOS SMB share?

Yes, on current ZimaOS versions. Share the folder over Samba and assign a member account with Read and Write instead of turning on guest access. Early versions only offered guest sharing.

Are CasaOS Samba shares password protected?

Not by default. Shares made in the CasaOS Files app allow guest access. You can require a password by setting one with smbpasswd and editing /etc/samba/smb.casa.conf, then restarting Samba.

Why does my ZimaOS share look empty on iPhone?

Connecting without credentials falls back to an anonymous user, and the folder then appears blank. Reconnect and choose Registered User with the member's name and password.

Will my CasaOS Samba changes survive?

Not always. People have found that creating a new share in CasaOS rewrites smb.casa.conf. Keep a copy of your edited file and check it after adding shares.

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+