From 1367005eee359eccc383da5536e67182102ceef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=B6hmke?= Date: Sun, 15 Dec 2019 16:29:06 +0100 Subject: [PATCH] fixed SystemSetRootPassword --- system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system.go b/system.go index 817f9bc..d6be3c0 100644 --- a/system.go +++ b/system.go @@ -27,7 +27,7 @@ func SystemSetRootPassword(password string) error { if err != nil { return fmt.Errorf("failed to generate hash: %w", err) } - line := fmt.Sprintf("root:%s:0:0:::::", hash) + line := fmt.Sprintf("root:%s:0:0:::::\n", hash) // write shadow file return ioutil.WriteFile(systemShadow, []byte(line), os.ModePerm)