Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

SFTP: set default umask to 0027 #252

Merged
merged 2 commits into from
Oct 18, 2019
Merged

SFTP: set default umask to 0027 #252

merged 2 commits into from
Oct 18, 2019

Conversation

Slamdunk
Copy link
Contributor

The default umask for SFTP is inherited by the ssh process, which allows others permissions.

It should be better to explicitly tighten SFTP permissions to deny others, and set group to read-only.

@Slamdunk
Copy link
Contributor Author

Travis failures don't seem related to this very PR 😕

@rndmh3ro
Copy link
Member

Hey @Slamdunk,

thanks your your PR. You're right that the travis failures are not related - ignore them for now.:)

To your PR: I like your addition! In the ansible-os-hardening project we also set the umask to 027, however there we have made it configurable. What do you think about doing it here, too?

@Slamdunk
Copy link
Contributor Author

Done :)

@rndmh3ro rndmh3ro merged commit 21e442c into dev-sec:master Oct 18, 2019
@rndmh3ro
Copy link
Member

Great addition, thanks!

@Slamdunk Slamdunk deleted the patch-1 branch October 18, 2019 09:33
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants