samba.sh/README.md - Add support for setting the USERID and GROUPID #40
This commit is contained in:
3
samba.sh
3
samba.sh
@@ -164,6 +164,9 @@ The 'command' (if provided and valid) will be run instead of samba
|
||||
exit $RC
|
||||
}
|
||||
|
||||
[[ "${USERID:-""}" =~ ^[0-9]+$ ]] && usermod -u $USERID -o smbuser
|
||||
[[ "${GROUPID:-""}" =~ ^[0-9]+$ ]] && groupmod -g $GROUPID -o users
|
||||
|
||||
while getopts ":hc:i:nps:t:u:w:" opt; do
|
||||
case "$opt" in
|
||||
h) usage ;;
|
||||
|
||||
Reference in New Issue
Block a user