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