Skip to content

Commit

Permalink
Merge pull request #91 from uselagoon/sftp-umask
Browse files Browse the repository at this point in the history
fix: set custom umask in sftp sessions
  • Loading branch information
smlx authored Aug 9, 2022
2 parents e0f5843 + b59e712 commit c9dcad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sshserver/sessionhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func sessionHandler(log *zap.Logger, c *k8s.Client, sftp bool) ssh.Handler {
// parse the command line arguments to extract any service or container args
service, container, cmd := parseConnectionParams(s.Command())
if sftp {
cmd = []string{"sftp-server"}
cmd = []string{"sftp-server", "-u", "0002"}
}
// validate the service and container
if err := k8s.ValidateLabelValue(service); err != nil {
Expand Down

0 comments on commit c9dcad0

Please sign in to comment.