Samba server on UDM-Pro using the drive bay.
-
Install on_boot.d as well as CNI plugins and CNI bridge scripts using:
curl -fsL "https://raw.githubusercontent.com/unifi-utilities/unifios-utilities/main/on-boot-script/remote_install.sh" | /bin/sh
-
Download 20-samba.sh to your UDM-Pro in
/mnt/data/on_boot.d
:curl "https://raw.githubusercontent.com/thealpa/UDMPRO-samba/udmsamba-master/20-samba.sh" -o /mnt/data/on_boot.d/20-samba.sh
-
(Optional) Adjust any settings if you want:
vi /mnt/data/on_boot.d/20-samba.sh
I highly recommend changing the default credentials.
-
Set permissions to executable:
chmod +x /mnt/data/on_boot.d/20-samba.sh
-
Run the script:
sh /mnt/data/on_boot.d/20-samba.sh
Connect to your UDM-PRO samba server:
smb://<your_udm_ip>/Shared/
The defaults credentials are user
and password
.
If you need more configuration options please refer to the dperson/samba docker image.
If the Internal Honeypot feature is enabled, the port of the SMB server needs to be changed to a different one than 445 in 20-samba.sh
.
ERRO[0000] unable to get systemd connection to add healthchecks
Can be ignored. The --no-healthcheck
option could be used to hide the error when using a newer podman version.
Error adding network: failed to create bridge "cni0": could not add "cni0": operation not supported
Make sure to execute the CNI plugins and CNI bridge scripts first.