Browse Source

[TEST] Ensure file permission for /etc/sudoers.d/elasticsearch_vars

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.
Tanguy Leroux 9 years ago
parent
commit
6cafe688b3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Vagrantfile

+ 1 - 0
Vagrantfile

@@ -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