On Wed, 2003-06-11 at 11:30, Mark wrote:

> 
> if [ "$USERID" -gt "499" ]  && [ "$USERNAME" != "nobody" ] ; then
>     echo groupadd -g ${GROUPID} ${USERNAME}
>     echo useradd -u ${USERID} -g ${GROUPID} -c \"${COMMENT}\" \
>       -d ${USERDIR} -s ${USERSHL} ${USERNAME}
>      PASSWD=`grep ${USERNAME}: /etc/shadow | cut -d: -f2`
>     echo usermod -p \"$PASSWD\" ${USERNAME}
> fi
> done

It looks like your setting the password to the hash..  Unless you
replace the new shadow with entries from the old this won't work.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to