From 9cfe6459c80cc7afe7d9840086d562ae598a6595 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Tue, 13 Apr 2021 19:45:21 +0200 Subject: [PATCH] Fixed add pam user --- zmb-standalone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zmb-standalone.sh b/zmb-standalone.sh index 93a6ce6..3e553f9 100644 --- a/zmb-standalone.sh +++ b/zmb-standalone.sh @@ -18,7 +18,7 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET acl samba samba-dsdb-modules samba-vfs-modules USER=$(echo "$ZMB_ADMIN_USER" | awk '{print tolower($0)}') -useradd --comment "Zamba fileserver admin" --create-home --shell /bin/bash +useradd --comment "Zamba fileserver admin" --create-home --shell /bin/bash $USER echo "$USER:$ZMB_ADMIN_PASS" | chpasswd smbpasswd -x $USER (echo $ZMB_ADMIN_PASS; echo $ZMB_ADMIN_PASS) | smbpasswd -a $USER