---------- Forwarded message ----------
From: "santosh kumar" <santho...@hotmail.com>
To: manu...@rediffmail.com
Date:
Subject: FW: hai sir-doubt-sorry to disturb you
>From: "manu balakrishnapillai" < manu...@rediffmail.com>
>Reply-To: "manu balakrishnapillai" <manu...@rediffmail.com>
>To: "santosh kumar" <santho...@hotmail.com>
>Subject: hai sir-doubt-sorry to disturb you
>Date: 13 Apr 2006 06:44:54 -0000
>
_________________________________________________________________
Shah Rukh fan? Know all about the Baadshah of Bollywood. On MSN Search
http://server1.msn.co.in/profile/shahrukh.asp
sir,
its me manu.. Am very sorry to disturb you... I know call will be a burden
in office and so am mailing....
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 can help me....
ur's
Manu