TimeCapsuleSMB is a project that configures a modern Samba setup to run directly on Apple AirPort Time Capsules. This allows Time Capsules to work as normal SMB servers on modern networks, since Apple removed SMB1 support from macOS and is removing AFP support.
This project is confirmed to work for:
- NetBSD 6 based Time Capsules - Fully supported with automatic startup
- NetBSD 4 based Time Capsules - Supported with manual activation after each reboot
Your Time Capsule should look like this:

This project is built by a developer in their free time, not Apple. While we don't expect it to permanently break your Time Capsule, it may mess up your configuration or data. We do not recommend using this if:
- You still use the Time Capsule as your primary router
- You have data on it that you're not comfortable losing
- You need 100% reliability
Important: This is not supported by Apple or any large company. Use at your own risk.
For the typical setup, you need:
- A Mac or Linux machine on the same local network as the Time Capsule
- The Time Capsule password
- Python 3.9+
smbclientinstalled locally (for thedoctorcommand)
Critical: Your Time Capsule must be set to "Device Password" mode, not "User/Password" mode. This is a common setup mistake that prevents the tool from working properly.
To check/change this:
- Open AirPort Utility on your Mac
- Select your Time Capsule
- Go to the "Base Station" tab
- Look for the password setting
- Ensure it's set to "Device Password" mode
Yes, we recommend keeping the TimeCapsuleSMB folder on your Mac for maintenance purposes. While you can delete it after initial setup, keeping it allows you to:
- Run
tcapsule doctorto diagnose issues - Run
tcapsule activateafter reboots (for NetBSD 4 devices) - Run
tcapsule uninstallif you want to remove the setup - Update to newer versions when available
The folder contains all the scripts, binaries, and configuration files needed for ongoing maintenance.
The default configuration values are:
- SMB share name:
Data - Samba username:
admin - Bonjour service name:
Time Capsule Samba - Bonjour hostname label:
timecapsulesamba
The password you enter during setup becomes both the Time Capsule password and the SMB password.
Once deployment is complete, you can connect via:
- Finder: Look in the "Network" folder
- Direct URL:
smb://timecapsulesamba4.local/Data - IP address: Use the IP from your
.envfile if Bonjour doesn't work
Credentials:
- Username:
admin - Password: Your Time Capsule password
Important: Time Machine on macOS 26.4 and 15.7.5 is currently broken. See this article for details.
Workaround: Macs running these versions can still use the device as a standard Samba network share in Finder, but Time Machine backups will not work properly.
-
Run the diagnostic command:
.venv/bin/tcapsule doctor
-
Check Bonjour directly:
dns-sd -B _smb._tcp local.
-
Try connecting directly:
smb://timecapsulesamba4.local/Data -
Use the IP address from your
.envfile if hostname resolution fails
Error 22 / Invalid Argument errors usually indicate disk corruption.
To fix this:
-
Run the disk repair command:
.venv/bin/tcapsule fsck
-
If
fsckdoesn't resolve the issue, you may need to:- Back up your data if possible
- Reformat the disk using Apple's tools
- Re-run the TimeCapsuleSMB setup
This can happen if the device is still finishing startup. These old Time Capsule CPUs are not fast.
Solution: Wait a bit longer, then run:
.venv/bin/tcapsule doctorThis is normal for NetBSD 4 devices (older Gen 1-4 Time Capsules). The firmware doesn't persist the /etc boot hook needed to auto-start Samba.
Solution: Always run tcapsule activate after rebooting older devices.
Finder is not always the best diagnostic tool. The service can be up and correct even when Finder browsing is slow or temperamental.
Solution: Use tcapsule doctor to verify the system is working correctly, rather than relying solely on Finder.
This should be treated as a LAN-only setup. Do not:
- Expose this SMB service directly to the public internet
- Forward ports to it
- Assume the Time Capsule is now a hardened NAS
Note: The current auth model maps SMB access to root internally on the Time Capsule. This is a deliberate compatibility choice for the old firmware.
The deploy script installs files in:
/mnt/Flashon the Time Capsule (boot files).samba4folder on the root of the hard drive (Samba files)
The uninstall script removes these managed files and can optionally reboot the device.
If you find problems, please file an issue here. The developer is actively working on improvements.
When filing an issue, please include:
- Your Time Capsule model
- macOS version you're using
- Output of
tcapsule doctor - Any error messages you're seeing
- Steps to reproduce the problem
Yes! If you want to rebuild smbd yourself, run the scripts in build/ on a NetBSD machine. The binaries are statically compiled, so you don't need anything else on the Time Capsule.
NetBSD 6 devices:
- Automatic startup on boot
- More reliable
- Recommended if available
NetBSD 4 devices:
- Manual
activaterequired after every reboot - Some extra caveats
- Older hardware
Yes! During tcapsule configure, you can customize:
- SMB share name
- Samba username
- Bonjour service name
- Bonjour hostname label
However, for most users, the defaults are recommended.
To update to a newer version:
git pullin the TimeCapsuleSMB folder- Run
tcapsule deployagain - Run
tcapsule doctorto verify
To remove TimeCapsuleSMB:
.venv/bin/tcapsule uninstallThis removes the managed payload and boot files. After reboot, your Time Capsule will be restored to factory condition (though Apple SMB/AFP settings may vary).
You can safely delete the TimeCapsuleSMB folder from your Mac after setup. All the important files are stored on the Time Capsule itself. However, we recommend keeping it for maintenance purposes (see above).