Message-Id: <10586.114373@fatcity.com> From: "Kirsh, Gary" Date: Fri, 11 Aug 2000 11:27:02 -0400 Subject: RE: Off topic- UNIx question This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C003A8.98DC3010 Content-Type: text/plain; charset="iso-8859-1" Uma, Here's a basic script I used in the past. In this case, I assigned all users the same home directory and group, but you parameterize those and maybe flesh this out a bit. if [ $# -ne 2 ]; then echo echo "Usage: add_user username \"Description\" where username =\tthe login name to be create \"Description\" =\tthe user's full name (must be in quotes if >1 word)" exit fi useradd -d /home/finapp -g finuser -c "$2" -s /sbin/sh $1 passwd -d $1 HTH, Gary Gary Kirsh Next Extent, Inc -----Original Message----- From: Uma Sankara_Sivadanam [mailto:UmaSankara_Sivadanam@satyam.com] Sent: Friday, August 11, 2000 2:35 AM To: Multiple recipients of list ORACLE-L Subject: RE: Off topic- UNIx question hi, I can.Since we are getting a new Unix Machine and as i have to port 230 users from the existing unix box to the new box, i require a script to run it in a loop for all the 230 accounts. uma ---------- From: Khedr, Waleed[SMTP:Waleed.Khedr@fmr.com] Reply To: ORACLE-L@fatcity.com Sent: Thursday, August 10, 2000 2:10 PM To: Multiple recipients of list ORACLE-L Subject: RE: Off topic- UNIx question Why not using the supplied commands like useradd? -----Original Message----- Sent: Thursday, August 10, 2000 10:37 AM To: Multiple recipients of list ORACLE-L Hi, Is any one of you having a script that will automatically create users on a uni box(preferably on SUNOS).Script should give all the details like existing groups and userid's and prompt the administrator for input.I have written one a year back but last it as i became a DBA from Unix Admin. Any site where these kind of scripts available is also OK. Thanks in advance Uma Shankar -- Author: Khedr, Waleed INET: Waleed.Khedr@FMR.COM Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ------_=_NextPart_001_01C003A8.98DC3010 Content-Type: text/html; charset="iso-8859-1" RE: Off topic- UNIx question
Uma,
 
Here's a basic script I used in the past.  In this case, I assigned all users the same home directory and group, but you parameterize those and maybe flesh this out a bit.
 
 
if [ $# -ne 2 ]; then
echo
echo "Usage: add_user username \"Description\"
 
where username =\tthe login name to be create
\"Description\" =\tthe user's full name (must be in quotes if >1 word)"
exit
fi
useradd -d /home/finapp -g finuser -c "$2" -s /sbin/sh $1
passwd -d $1
 
HTH,
Gary
 
Gary Kirsh
Next Extent, Inc
-----Original Message-----
From: Uma Sankara_Sivadanam [mailto:UmaSankara_Sivadanam@satyam.com]
Sent: Friday, August 11, 2000 2:35 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Off topic- UNIx question

hi,

I can.Since we are getting a new Unix Machine and as i have to port 230 users from  the existing unix box to the new box, i require a script to run it in a loop for all the 230 accounts.

uma