Initial commit
This commit is contained in:
commit
17d3f0531e
1
build/.Dockerfile~
Normal file
1
build/.Dockerfile~
Normal file
@ -0,0 +1 @@
|
||||
|
7
build/Dockerfile
Normal file
7
build/Dockerfile
Normal 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
26
build/samba.conf
Normal 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
|
Reference in New Issue
Block a user