My goal is to create a kickstart script which adds a list of users with predefined passwords. I would like to pass in pre-crypted passwords. I have used marozsas' crypt code(
http://www.linuxquestions.org/questi...ighlight=crypt). If i do something like:
Code:
useradd -p `crypt password` testuser
the password is set correctly. However, if i run 'crypt password' by itself and copy/paste the output to useradd -p ... testuser, the password is not set correctly. I need to be able to do this in the kickstart script. Can anyone explain why this is happening and suggest what I need to do?
Any help would be appreciated!
~robert