mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-12-26 04:00:13 +01:00
Fixed add pam user
This commit is contained in:
parent
1d6aad24a4
commit
9cfe6459c8
@ -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
|
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)}')
|
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
|
echo "$USER:$ZMB_ADMIN_PASS" | chpasswd
|
||||||
smbpasswd -x $USER
|
smbpasswd -x $USER
|
||||||
(echo $ZMB_ADMIN_PASS; echo $ZMB_ADMIN_PASS) | smbpasswd -a $USER
|
(echo $ZMB_ADMIN_PASS; echo $ZMB_ADMIN_PASS) | smbpasswd -a $USER
|
||||||
|
Loading…
Reference in New Issue
Block a user