first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled

This commit is contained in:
2025-09-06 16:08:15 +08:00
commit 63285f61aa
2624 changed files with 88491 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
FROM ubuntu:16.04
LABEL maintainer="phithon <root@leavesongs.com>"
ENV BUILD_DEP wget build-essential autoconf
RUN set -ex \
&& echo "krb5-config krb5-config/default_realm string " | debconf-set-selections \
&& apt-get update \
&& apt-get install -y $BUILD_DEP acl attr bison \
debhelper dnsutils docbook-xml docbook-xsl flex gdb krb5-user \
libacl1-dev libaio-dev libattr1-dev libblkid-dev libbsd-dev \
libcap-dev libcups2-dev libgnutls28-dev libjson-perl \
libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \
libpopt-dev libreadline-dev pkg-config perl perl-modules \
python-all-dev python-dev python-dnspython python-crypto \
xsltproc zlib1g-dev libsystemd-dev libgpgme11-dev python-gpgme python-m2crypto \
&& mkdir -p /usr/src/samba \
&& wget -qO- https://download.samba.org/pub/samba/stable/samba-4.6.3.tar.gz \
| tar zx -C /usr/src/samba --strip-components=1 \
&& cd /usr/src/samba \
&& ./configure \
&& make \
&& make install \
&& make clean \
&& cd / \
&& rm -rf /usr/src/samba \
&& apt-get purge -y --auto-remove $BUILD_DEP \
&& rm -rf /var/lib/apt/lists/*
ENV PATH /usr/local/samba/bin/:/usr/local/samba/sbin/:$PATH
EXPOSE 137/udp 138/udp 139 445
RUN mkdir /home/share \
&& chmod 777 /home/share
COPY smb.conf /usr/local/samba/etc/smb.conf
CMD ["/usr/local/samba/sbin/smbd", "-FS"]

14
base/samba/4.6.3/smb.conf Normal file
View File

@@ -0,0 +1,14 @@
[global]
workgroup = MYGROUP
server string = Samba Server Version %v
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw
[myshare]
comment=smb share test
browseable=yes
writeable=yes
path=/home/share
public = yes