Skip to content

Commit

Permalink
samba: dont force NAME_REGEX for username
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Mar 27, 2018
1 parent 062438b commit f1bbf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/samba.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ EOF
EOF

## create user with no login if it doesn't exist
id "$user" &>/dev/null || adduser --disabled-password --gecos "" "$user"
id "$user" &>/dev/null || adduser --disabled-password --force-badname --gecos "" "$user" || return 1
echo -e "$PWD_\n$PWD_" | smbpasswd -s -a $user

usermod -aG www-data $user
Expand Down

0 comments on commit f1bbf57

Please sign in to comment.