update to make passwd file non-executable
This commit is contained in:
parent
752b779d1f
commit
178fc54332
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user