From a8eae1de9ebe34c719e7ff74a5fb25e3ebedbd4d Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Sun, 30 Jan 2022 23:43:12 +0100 Subject: [PATCH] Allow bad usernames to fix #109 --- files/create-sftp-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/create-sftp-user b/files/create-sftp-user index 874264c..53ad403 100755 --- a/files/create-sftp-user +++ b/files/create-sftp-user @@ -34,7 +34,7 @@ IFS=':' read -ra args <<< "$1" skipIndex=0 chpasswdOptions="" -useraddOptions=(--no-user-group) +useraddOptions=(--no-user-group --badnames) user="${args[0]}"; validateArg "username" "$user" "$reUser" || exit 1 pass="${args[1]}"; validateArg "password" "$pass" "$rePass" || exit 1