Description of problem: When the Anaconda installed is booted and the 'sshd' boot option is passed, you still cannot sshd into the system with an empty password. [root@chukar ~]# ssh root.90.169 root.90.169's password: Permission denied, please try again. When I switch to a bash console, I notice that there are two root entries in the shadow file. [anaconda root@(none) /]# grep root /etc/shadow root:*:15209:0:99999:7::: root::14438:0:99999:7::: The first entry causes the account to be locked. Lorax has the following command in the share/runtime-postinstall.tmpl file: append etc/shadow "root::14438:0:99999:7:::"
http://git.fedorahosted.org/git/?p=lorax.git;a=commitdiff;h=3dde9f6316f2ed7d90e60a117fa1f60f8986b2f7
The root password is still not empty. There is only one root entry now and it looks like this: [anaconda root@(none) /]# grep root /etc/shadow root::*:15209:0:99999:7::: The fix looked like it added a colon and kept the *. It should be: [anaconda root@(none) /]# sed -i -e 's,::[*]:,::,' /etc/shadow [anaconda root@(none) /]# grep root /etc/shadow root::15209:0:99999:7:::
hah, yep, I forgot that 'replace' uses regexes, so: replace "root:*:" "root::" etc/shadow would end up replacing "root:" with "root::". Should be: replace "root:\*:" "root::" etc/shadow Fixed in git: http://git.fedorahosted.org/git/?p=lorax.git;a=commitdiff;h=e3bb8700