diff --git a/files/create-sftp-user b/files/create-sftp-user index 5df16b7..7b3838b 100755 --- a/files/create-sftp-user +++ b/files/create-sftp-user @@ -97,7 +97,7 @@ if [ -n "$dir" ]; then if [ ! -d "$dirPath" ]; then log "Creating directory: $dirPath" mkdir -p "$dirPath" - chown -R "$uid:users" "$dirPath" + chown -R "$uid:$gid" "$dirPath" else log "Directory already exists: $dirPath" fi