1
0

samba.sh/README.md - Add support for setting the USERID and GROUPID #40

This commit is contained in:
David Personette
2017-01-04 15:54:52 -05:00
parent b080e5c373
commit f42fb1fa2b
2 changed files with 5 additions and 0 deletions

View File

@@ -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 ;;