Fix groupmod editing incorrect user
This commit is contained in:
parent
1f922b46bc
commit
5231790bbe
2
samba.sh
2
samba.sh
@ -198,7 +198,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 users
|
[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o smbuser
|
||||||
|
|
||||||
while getopts ":hc:i:nprs:St:u:Ww:" opt; do
|
while getopts ":hc:i:nprs:St:u:Ww:" opt; do
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
|
Loading…
Reference in New Issue
Block a user