Bye NFS, hello Samba

This commit is contained in:
Maurice
2025-10-03 15:03:41 +02:00
parent 7edf0a8c3d
commit 88162ff382
3 changed files with 29 additions and 24 deletions

24
services/samba/install.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
apk add samba
mkdir -p /mnt/shared
chmod 0777 /mnt/shared
cat << EOF > /etc/samba/smb.conf
[global]
workgroup = GOOFJES
server string = Goofjes Samba
server role = standalone server
[shared]
path = /mnt/shared
follow symlinks = yes
wide links = yes
browseable = yes
writable = yes
EOF
rc-update add samba
rc-service samba start
echo "Use smbpasswd -a <username> to add users to SAMBA."