user problem

1 view
Skip to first unread message

manu balakrishnapillai

unread,
Apr 18, 2006, 8:29:42 AM4/18/06
to Linu...@googlegroups.com

 
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



WahJava

unread,
Apr 20, 2006, 10:37:29 AM4/20/06
to Linux OS
manu balakrishnapillai wrote:
> # -p passwd

# -p passwd as returned by crypt(), see useradd manpage

> Manu

Ashish Shukla "Wah Java !!"
--
http://wahjava.blogspot.com/

Reply all
Reply to author
Forward
0 new messages