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:
parent
e6db04336b
commit
8ba7fd89a3
2
samba.sh
2
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
|
[[ "${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
|
||||||
|
Loading…
Reference in New Issue
Block a user