From f3218378cd517d0605a697234320ee21dab83f6f Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 25 May 2017 14:44:13 -0700 Subject: [PATCH] Fix perms to just set exec bit --- client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index ea9e57426a2..7e1aaab3d35 100644 --- a/client/client.go +++ b/client/client.go @@ -353,7 +353,7 @@ func (c *Client) init() error { // Ensure the alloc dir exists if we have one if c.config.AllocDir != "" { - if err := os.MkdirAll(c.config.AllocDir, 0755); err != nil { + if err := os.MkdirAll(c.config.AllocDir, 0711); err != nil { return fmt.Errorf("failed creating alloc dir: %s", err) } } else { @@ -369,7 +369,7 @@ func (c *Client) init() error { } // Change the permissions to have the execute bit - if err := os.Chmod(p, 0755); err != nil { + if err := os.Chmod(p, 0711); err != nil { return fmt.Errorf("failed to change directory permissions for the AllocDir: %v", err) }