From 9c455b55fa4e7db0ae6848f7a6f81a13dbf97053 Mon Sep 17 00:00:00 2001 From: David Personette Date: Wed, 19 Oct 2016 15:33:00 -0400 Subject: [PATCH] samba.sh fix setting the user passwd --- samba.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba.sh b/samba.sh index b909b41..15821ec 100755 --- a/samba.sh +++ b/samba.sh @@ -92,7 +92,7 @@ timezone() { local timezone="${1:-EST5EDT}" # Return: user added to container user() { local name="${1}" passwd="${2}" id="${3:-""}" useradd "$name" -M ${id:+-u $id} - echo "$passwd" | tee - | smbpasswd -s -a "$name" + echo -e "$passwd\n$passwd" | smbpasswd -s -a "$name" } ### workgroup: set the workgroup