Hello all,
I have create a script to add a useraccount on my webserver. the script creates all directorys (html, cgi-bin, temp), set the permissions and send me a mail with all informations.
everything run ok but only the password.
export PASSWD=$(pwgen -1 -c -n)
now $PASSWD is the created password.
I try to use passwd or useradd -p
nothing is running .. can some on tell me how is the syntax ??
e.g
passwd -e $USERNAME $PASSWD (not running)
useradd -g ftpuser -d /var/www/$USERNAME -s /bin/ftp -m $USERNAME -p $PASSWD (not running)
Help please
Thanx, Brian