support new boot option encpasswd to provide hashed password, refactor passwd/ssh...
authorMichael Prokop <mika@grml.org>
Mon, 10 Jun 2013 14:33:30 +0000 (16:33 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 10 Jun 2013 14:33:30 +0000 (16:33 +0200)
commiteb16ae771b32a813e5d9738caccf753e14800502
tree13baeb343993b516a2ae0646c72a0665a47b520d
parent41dd94d5393a08db9ecd4df3e79e95454be2ba5b
support new boot option encpasswd to provide hashed password, refactor passwd/ssh code accordingly

Share code and features between passwd, ssh and encpasswd boot options.
To match the behaviour with the ssh boot option the passwd boot option
now also sets the password for user root - and not only for user 'grml'.

See http://openwall.info/wiki/john/sample-hashes for sample hashes.

Thanks: Peter Palfrader for the idea
autoconfig.functions