From 178fc543320903329f523d1adf120f47262d7761 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Mon, 18 Dec 2023 14:28:08 -0500 Subject: [PATCH] update to make passwd file non-executable --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 2493c7b..317c057 100644 --- a/config/config.go +++ b/config/config.go @@ -535,7 +535,7 @@ func ConfigureDirectories() error { return err } else { // the WriteFile method returns an error if unsuccessful - err := os.WriteFile(passwd.Name(), []byte(fmt.Sprintf("container:x:%d:%d::/home/container:/usr/sbin/nologin", _config.System.User.Uid, _config.System.User.Gid)), 0755) + err := os.WriteFile(passwd.Name(), []byte(fmt.Sprintf("container:x:%d:%d::/home/container:/usr/sbin/nologin", _config.System.User.Uid, _config.System.User.Gid)), 0644) // handle this error if err != nil { // print it out