Kaydet (Commit) 62707499 authored tarafından Clement Lefebvre's avatar Clement Lefebvre

Don't set the root password, lock it.

Consistent with Mint and Calamares.
üst 0a38d776
......@@ -236,11 +236,13 @@ class InstallerEngine:
fp = open("/target/tmp/.passwd", "w")
fp.write(setup.username + ":" + setup.password1 + "\n")
fp.write("root:" + setup.password1 + "\n")
fp.close()
self.do_run_in_chroot("cat /tmp/.passwd | chpasswd")
os.system("rm -f /target/tmp/.passwd")
# Lock root password
self.do_run_in_chroot("passwd -l root")
# Set LightDM to show user list by default
self.do_run_in_chroot(r"sed -i -r 's/^#?(greeter-hide-users)\s*=.*/\1=false/' /etc/lightdm/lightdm.conf")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment