Fix(group): groupmod the users group

smbuser is assigned to the users group, change the id of the users group instead of the smbuser group.
Resolves https://github.com/dperson/samba/issues/79
This commit is contained in:
Sander Koenders 2017-10-22 16:57:46 +02:00 committed by GitHub
parent e6db04336b
commit 8ba7fd89a3

View File

@ -193,7 +193,7 @@ The 'command' (if provided and valid) will be run instead of samba
} }
[[ "${USERID:-""}" =~ ^[0-9]+$ ]] && usermod -u $USERID -o smbuser [[ "${USERID:-""}" =~ ^[0-9]+$ ]] && usermod -u $USERID -o smbuser
[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o smbuser [[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o users
while getopts ":hc:g:i:nprs:Su:Ww:" opt; do while getopts ":hc:g:i:nprs:Su:Ww:" opt; do
case "$opt" in case "$opt" in