From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2451cbea516681d9 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-05-02 05:58:54 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!typhoon.tampabay.rr.com.POSTED!not-for-mail Reply-To: "Chuck" From: "Chuck" Newsgroups: comp.unix.tru64 References: <3A2BB32E.9E8F2159@manor.ch> <3AEB00D4.732082AE@coserv.net> Subject: Re: add +200 users and set the password automatically X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: Date: Wed, 02 May 2001 12:58:53 GMT NNTP-Posting-Host: 65.32.118.134 X-Complaints-To: abuse@rr.com X-Trace: typhoon.tampabay.rr.com 988808333 65.32.118.134 (Wed, 02 May 2001 08:58:53 EDT) NNTP-Posting-Date: Wed, 02 May 2001 08:58:53 EDT Organization: RoadRunner - TampaBay Xref: newsfeed.google.com comp.unix.tru64:2152 In a similar situation I used the following script to set initial passwords to "loginname-numericuserid". Could be modified to create random passwords instead. Hope this helps. Needs to be called for each user name as in something like: for u in `cat names.lst` do setinitialpw $u done --- setinitialpw script below -- Must be run as root of course PRG=`basename $0` usedefaultpw=y if [ $# -lt 1 ]; then echo "Need a user name argument.\nAbort" exit 1 fi ## Subroutine setdefaultpw(){ pw=${user}-${uid} /usr/sbin/usermod -p $user < wrote in message news:3AEB00D4.732082AE@coserv.net... > Norbert Gnipp wrote: > > > Hi there, > > > > We are planning to add up to 200 users on out Tru64 V5.0a Server. > > To add an user account is not a problem, but to set up the password. > > > > So we are looking for help to set the password automatically. > > > > Normally the unix password program want a user action to set the > > password, but in our case we want that we can use the password > > program with a parameter or a variable to set the password without > > an user action. > > > > Regards > > N. Gnipp > > you could set the password to be random then use a script running from > root to passwd each account *or* > you could just set the password field to :: in the etc/passwd and expire > those accounts so they would have to change after first login > >