commit 17d3f0531e02911d4f72aac75a56408f3c7b37cc Author: caskd Date: Wed Jan 22 13:18:53 2020 +0100 Initial commit diff --git a/build/.Dockerfile~ b/build/.Dockerfile~ new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/build/.Dockerfile~ @@ -0,0 +1 @@ + diff --git a/build/Dockerfile b/build/Dockerfile new file mode 100644 index 0000000..459e446 --- /dev/null +++ b/build/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:latest +RUN apk add --no-cache --update samba shadow +RUN adduser -S -D -H -h /tmp -s /sbin/nologin -g 'Samba Owner' smbowner +ADD samba.conf /etc/samba/smb.conf +EXPOSE 445/tcp 139/tcp +ENTRYPOINT ["smbd", "--foreground", "--no-process-group", "-s", "/etc/samba/smb.conf"] +VOLUME ["/var/log/samba", "/var/lib/samba"] diff --git a/build/samba.conf b/build/samba.conf new file mode 100644 index 0000000..4f139b8 --- /dev/null +++ b/build/samba.conf @@ -0,0 +1,26 @@ +[global] + workgroup = smb + security = user + server string = %h server (Samba, RedXen) + dns proxy = no + log file = /var/log/samba/log.%m + max log size = 1000 + syslog = 0 + server role = standalone server + passdb backend = tdbsam + obey pam restrictions = yes + unix password sync = yes + passwd program = /usr/bin/passwd %u + passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . + pam password change = yes + map to guest = never + usershare allow guests = no + public = no + guest ok = no + printable = no +[backups] + valid users = smbowner + path = /mnt/smbstorage + writable = yes + create mask = 0600 + directory mask = 0700 diff --git a/samba.yml b/samba.yml new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/samba.yml @@ -0,0 +1 @@ +