From 4890e4e134bc4298ccff69fcd19c0b57d4155b35 Mon Sep 17 00:00:00 2001 From: rayjlinden <42587610+rayjlinden@users.noreply.github.com> Date: Mon, 29 Jul 2019 08:22:23 -0700 Subject: [PATCH] Change create-sftp-user to honor gid for the directories The gid is not being properly set for newly created dirs. Looks like the group "users" is hard coded instead. --- files/create-sftp-user | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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