The most simple solution on the older SuSE 8 versions is to do a postinstall
script with a perl command to insert the proper encrypted password into the
shadow file.
/usr/bin/perl -pi -e 's#^root:.*$#root:<your pw here>:12415:0:10000::::#'
/etc/shadow
If it has been fixed in the newer versions there is xml code to support
setting the password.
<users config:type="list">
<user>
<encrypted config:type="boolean">true</encrypted>
your pw here
<username>root</username>
</user>
</users>
-----Original Message-----
From: Nicholas DeClario [mailto:nick@demandred.dyndns.org]
Sent: Wednesday, September 08, 2004 2:43 PM
To: suse-autoinstall@suse.com
Subject: [suse-autoinstall] Setting a default root password
Hey guys. During my auto install I want a default root password to be put
in place. I checked numberous documentation and searched quite a bit and
couldn't come up with anything. I was going to just do something like
'echo "password" | passwd root --stdin' in a post-install script but the
'passwd' included in SuSE does not support the --stdin option I've seen in
the past. I would prefer not to hack up passwd to add this functionality
as well.
Am I missing something obvious? Is there anyway this can be done? Any
help would be appreciated.
Thanks,
-Nick
--
To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com
For additional commands, e-mail: suse-autoinstall-help@suse.com