Initial commit

This commit is contained in:
caskd 2020-01-22 13:18:53 +01:00
commit 17d3f0531e
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
4 changed files with 35 additions and 0 deletions

1
build/.Dockerfile~ Normal file
View File

@ -0,0 +1 @@

7
build/Dockerfile Normal file
View File

@ -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"]

26
build/samba.conf Normal file
View File

@ -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

1
samba.yml Normal file
View File

@ -0,0 +1 @@