When you're going to install Gentoo Linux 2008.0 via ssh, you typically type boot: gentoo nox dosshd passwd=foo, but kernel ignores "passwd=foo" command. So you cannot login to the machine using ssh. $(uname -r): 2.6.24-gentoo-r5 Reproducible: Always Steps to Reproduce: 1. boot from 2008.0 installcd/livecd using "dosshd passwd=foo" 2. check that sshd succesfully started - /etc/init.d/sshd status 3. try ssh root@localhost using "foo" as a password Actual Results: Permission denied Expected Results: Login as root
It looks like this new feature in livecd-tools wasn't really tested. In /etc/init.d/autoconfig line 187, it should be: PASSWORD="${x/passwd=/}"
I recommend using the following instead: passwd=*|pass=*|pwd=*|password=*) PASSWD="no" PASSWORD="${*#*=}" 1- alias to password, false bugs are bound to be caused by these alternate spellings 2- ${*#*=} <<>> this strips up to the first = sign, letting the way to having '=' in the password and or having something as silly as 'password=' as a password :P
Created attachment 159824 [details, diff] password parsing patch as per comment #2
(In reply to comment #3) > Created an attachment (id=159824) [edit] > password parsing patch > > as per comment #2 >
(In reply to comment #4) > (In reply to comment #3) > > Created an attachment (id=159824) [edit] > > password parsing patch > > > > as per comment #2 > > > I tested both of the above solutions, while the 2nd one didn't work ($PASSWORD still empty), the first one worked fine. I am no expert, but i think ther eis an error in the syntax -> PASSWORD="${*#*=}".
You're saying the patch didn't work? here is how I tested it: kyron@kyron ~ $ cat pass.sh #!/bin/bash for I in $* do case $I in passwd=*|pass=*|pwd=*|password=*) PASSWORD="${*#*=}" ;; esac done echo "I got the following as a password: $PASSWORD" kyron@kyron ~ $ ./pass.sh pass=kasdlfnsdkl=fjk= I got the following as a password: kasdlfnsdkl=fjk= ...
(In reply to comment #5) > > > I tested both of the above solutions, while the 2nd one didn't work ($PASSWORD > still empty), the first one worked fine. > I am no expert, but i think ther eis an error in the syntax -> > PASSWORD="${*#*=}". > ...woops, I double checked and you were right: PASSWORD="${*#*=}" should be: PASSWORD="${x#*=}" Sorry about that!
Created attachment 160003 [details, diff] parse $x and not $* for password I was parsing $* and not $x ...be damned my test script!
(In reply to comment #8) > Created an attachment (id=160003) [edit] > parse $x and not $* for password > > I was parsing $* and not $x ...be damned my test script! > Ok, seems to work now as expected.;)
The substitution fix has been committed, but the parameter is staying as passwd=
*** Bug 274639 has been marked as a duplicate of this bug. ***
(In reply to comment #10) > The substitution fix has been committed, but the parameter is staying as > passwd= > Unfortunately, this bug still remains in install-x86-minimal-20090623.iso
This was fixed in livecd-tools-1.0.42.
(In reply to comment #13) > This was fixed in livecd-tools-1.0.42. Indeed, you committed livecd-tools-1.0.42 ebuild on 29 Jun 2009, i.e. later than 2009.06.23 (the date of iso). Sorry for the false alarm.