kickstart useradd
Charles Howse
chowse at charter.net
Thu Mar 4 18:41:57 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm building a custom kickstart file.
The first question I have is:
When I installed manually, on the first boot, I was prompted to agree to the
license agreement, create a user, etc.
Does that happen when doing a kickstart install?
If not, I need to know how to set the new user's password from a script.
I have the following from the Red Hat 9 documentation on kickstart %post
configuration:
/usr/sbin/useradd charles
/usr/bin/chfn -f "Charles Howse" charles
#/usr/sbin/usermod -p 'kjdf$04930FTH/ ' charles
The user charles already exists on my system, and has an entry in /etc/shadow.
I want to preserve the existing password, with the default expiration, etc for
charles. I don't care if the password is encrypted or not in the script.
Can I just copy the contents of /etc/shadow for charles between the first and
second colons to the commented line above?
Is there a way to set the password unencrypted?
- --
Charles Howse
Jackson, TN
Registered Linux user # 347576 (http://counter.li.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAR3h5/S+VsB9RMKgRAqTOAKCPcSiO+Bq0nsRa4JVd4484U4wqVwCgkxrU
QfnyQMY3p3ibCHz2/Ebd8U0=
=G0wz
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list