We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eacf693 commit fd87bcbCopy full SHA for fd87bcb
files/entrypoint
@@ -55,6 +55,11 @@ if [ ! -f "$userConfFinalPath" ]; then
55
56
# Check that we have users in config
57
if [ -f "$userConfFinalPath" ] && [ "$(wc -l < "$userConfFinalPath")" -gt 0 ]; then
58
+ if [ -n "$(find /home -perm /go=w -o \! -user root -maxdepth 0)" ]; then
59
+ log "Modify /home to have the correct permissions, as it may be mounted with the wrong permissions."
60
+ chmod go-w /home
61
+ chown root /home
62
+ fi
63
# Import users from final conf file
64
while IFS= read -r user || [[ -n "$user" ]]; do
65
create-sftp-user "$user"
0 commit comments