Overwrite the /etc/shadow file
This commit is contained in:
parent
b00b0a77c9
commit
47cf65df19
@ -482,7 +482,7 @@ class LoraxInstallTree(BaseLoraxClass):
|
|||||||
fobj.write("install:x:0:0:root:/root:/sbin/loader\n")
|
fobj.write("install:x:0:0:root:/root:/sbin/loader\n")
|
||||||
|
|
||||||
shadow = joinpaths(self.root, "etc", "shadow")
|
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("root::14438:0:99999:7:::\n")
|
||||||
fobj.write("install::14438:0:99999:7:::\n")
|
fobj.write("install::14438:0:99999:7:::\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user