From 6cafe688b3f7f6a0a6493d8139b1bd1947d11bac Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Tue, 15 Nov 2016 17:42:57 +0100 Subject: [PATCH] [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. --- Vagrantfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Vagrantfile b/Vagrantfile index 47b4249bc32..806d39cc160 100644 --- a/Vagrantfile +++ b/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