Skip to content

Commit

Permalink
[TEST] Ensure file permission for /etc/sudoers.d/elasticsearch_vars
Browse files Browse the repository at this point in the history
Ubuntu 12.04 checks the file permission for /etc/sudoers.d/elasticsearch_vars is mode 0440. This commit adds a `chmod` before the file is used by the `sudo` command.
  • Loading branch information
tlrx committed Nov 15, 2016
1 parent 6db683a commit 6cafe68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,6 @@ Defaults env_keep += "BATS_UTILS"
Defaults env_keep += "BATS_TESTS"
Defaults env_keep += "BATS_ARCHIVES"
SUDOERS_VARS
chmod 0440 /etc/sudoers.d/elasticsearch_vars
SHELL
end

0 comments on commit 6cafe68

Please sign in to comment.