i was trying to create users in linux and thru GUI i succeeded... if i
wanna create 1000 users, it will be a huge task when we use the gUI.. so itried it in shell program.... the users got created but when i login using that user id and password its not working... "login incorrect" message am getting...
the following is the shell progarm... please go thru it and help me
#########################################
#program
#set -x
echo "enter the no: of users"
read a
for((i=1;i<=$a;i++))
{
useradd -g group -d /home/pg1a -p casapg$i -s /bin/bash pg1a$i
}
#end of program
# -g [group]
# -d [home directory]
# -p passwd
# -s default shell
#
hope u peoples can help me....
Manu
# -p passwd as returned by crypt(), see useradd manpage
> Manu
Ashish Shukla "Wah Java !!"
--
http://wahjava.blogspot.com/