smbpasswd

Add/remove a Samba user or change its password. Samba users must have an existing local Unix account. More information: <https://manned.org/smbpasswd.8>.

Debian Debian
RUN apt-get update && \ apt-get install -y samba-common-bin
Ubuntu
RUN apt-get update && \ apt-get install -y samba-common-bin
Alpine
RUN apk add samba
Arch Arch Linux
RUN pacman -S --noconfirm samba
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y samba-common-bin
CentOS
RUN yum install -y samba-common-tools
Fedora
RUN dnf install -y samba-common-tools-2
Raspbian
RUN apt-get update && \ apt-get install -y samba-common-bin
click the source code to copy install smbpasswd on any operating system with command-not-found.com