update to make passwd file non-executable

This commit is contained in:
Michael (Parker) Parker 2023-12-18 14:28:08 -05:00
parent 752b779d1f
commit 178fc54332

View File

@ -535,7 +535,7 @@ func ConfigureDirectories() error {
return err return err
} else { } else {
// the WriteFile method returns an error if unsuccessful // 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 // handle this error
if err != nil { if err != nil {
// print it out // print it out