You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 weeks ago | |
|---|---|---|
| .. | ||
| config | 4 weeks ago | |
| tmpfiles.d | 4 weeks ago | |
| Makefile | 4 weeks ago | |
| README.md | 2 weeks ago | |
| hooks.mk | 4 weeks ago | |
| samba-build.timer | 4 weeks ago | |
| samba.build | 4 weeks ago | |
| samba.container | 4 weeks ago | |
| samba.target | 4 weeks ago | |
README.md
Podman Quadlet: Samba
Overview
Samba is an SMB/CIFS file sharing server started as a Podman Quadlet. It allows sharing files and directories over the network with Windows, macOS, and Linux clients.
This cookbook:
- Builds a custom Samba container image locally.
- Runs Samba with configurable shares via drop-in configuration files.
- Supports user authentication with system users mapped into the container.
- Includes a timer to periodically rebuild the container image.
- Only starts if at least one share configuration file exists.
Prerequisites
- Share configuration files must exist in
/etc/quadlets/samba/smb.conf.d/with names ending inshares.conf.
Usage
In a separate terminal, follow the logs.
sudo make tail-logs
Install the Podman Quadlets and start Samba.
sudo make clean install
You should see the samba-build.service building the Samba container image. Then, the samba.service should start up.
Verify Samba is running:
sudo systemctl status samba.service
Test connectivity from a client:
smbclient -L //localhost -N
Connect to a share:
smbclient //localhost/sharename -U username
Restart the samba.target unit.
sudo systemctl restart samba.target
Finally, remove the quadlets, their configuration and their data.
sudo make uninstall clean
Integration tests
sudo make test