0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

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.
This commit is contained in:
rayjlinden 2019-07-29 08:22:23 -07:00 committed by GitHub
parent bd437a09cb
commit 4890e4e134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ if [ -n "$dir" ]; then
if [ ! -d "$dirPath" ]; then if [ ! -d "$dirPath" ]; then
log "Creating directory: $dirPath" log "Creating directory: $dirPath"
mkdir -p "$dirPath" mkdir -p "$dirPath"
chown -R "$uid:users" "$dirPath" chown -R "$uid:$gid" "$dirPath"
else else
log "Directory already exists: $dirPath" log "Directory already exists: $dirPath"
fi fi