LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   adding a user during kickstart installation (https://www.linuxquestions.org/questions/linux-general-1/adding-a-user-during-kickstart-installation-394492/)

triley 12-19-2005 09:33 AM

adding a user during kickstart installation
 
I'm trying to add a user during a kickstart installation of Redhat Enterprise 4. Kickstart installation works fine and it appears that my user is even added, but I am unable to log in with my user after successfully installing RHEL. My encrypted password appears in /etc/shadow, but I still can't log in. My ks.cfg looks like this:

%post

/usr/sbin/useradd -m <user> -p --<encrypted password>

Is there something wrong with my format? Thanks.

GrueMaster 12-19-2005 09:59 AM

Your useradd cmdline should look like "/usr/sbin/useradd -p <encrypted password> <username>" The extra "--" that you had is probably being added to the password. Also, "-m" is used to specify the home directory (default is /home/<username>).

Good luck.


All times are GMT -5. The time now is 05:47 AM.