Overwrite the /etc/shadow file

This commit is contained in:
Martin Gracik 2011-01-19 13:54:50 +01:00
parent b00b0a77c9
commit 47cf65df19

View File

@ -482,7 +482,7 @@ class LoraxInstallTree(BaseLoraxClass):
fobj.write("install:x:0:0:root:/root:/sbin/loader\n")
shadow = joinpaths(self.root, "etc", "shadow")
with open(shadow, "a") as fobj:
with open(shadow, "w") as fobj:
fobj.write("root::14438:0:99999:7:::\n")
fobj.write("install::14438:0:99999:7:::\n")