Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly set SSH permissions in base.sh #1927

Merged
merged 1 commit into from
Jan 5, 2021
Merged

Explicitly set SSH permissions in base.sh #1927

merged 1 commit into from
Jan 5, 2021

Conversation

davidemyers
Copy link
Contributor

@davidemyers davidemyers commented Dec 12, 2020

Description

Apparently umask does not propagate through to sudo commands. This change explicitly sets the permissions on the .ssh directory and authorized_keys file for the user algo.

Also not all cloud providers obey the #! in a script like this so we must assume the script will be run by dash rather than bash.

Closes #1925.

How Has This Been Tested?

Tested on Vultr, Lightsail, and Linode.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • All new and existing tests passed.

@davidemyers
Copy link
Contributor Author

I don't know why the test failed but I had a pip install fail for me at one point today as well.

@jackivanov jackivanov merged commit 654809f into trailofbits:master Jan 5, 2021
@davidemyers davidemyers deleted the base branch January 5, 2021 19:52
foodneutrino pushed a commit to foodneutrino/algo that referenced this pull request Sep 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH To Vultr Servers Don't Work
2 participants