From 8ba7fd89a3e7824f4a37cd2eaed08d82f95f00aa Mon Sep 17 00:00:00 2001 From: Sander Koenders Date: Sun, 22 Oct 2017 16:57:46 +0200 Subject: [PATCH] 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 --- samba.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samba.sh b/samba.sh index f8cdd90..e032536 100755 --- a/samba.sh +++ b/samba.sh @@ -193,7 +193,7 @@ The 'command' (if provided and valid) will be run instead of samba } [[ "${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 case "$opt" in @@ -232,4 +232,4 @@ elif ps -ef | egrep -v grep | grep -q smbd; then else [[ ${NMBD:-""} ]] && ionice -c 3 nmbd -D exec ionice -c 3 smbd -FS