From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5d14ca6c35ee5b90 X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: Adding passwords from a script Date: 1998/04/18 Message-ID: <3538A602.BD3AA678@EUnet.yu>#1/1 X-Deja-AN: 345367588 Content-Transfer-Encoding: 7bit References: <353b7a65.81524045@news3.buffnet.net> Content-Type: text/plain; charset=us-ascii Organization: Me organized? Not here! Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Jeffrey Sick wrote: > > I figured out a way to add hundreds of users at a time to a DEC UNIX > 4.0D / C2 server at a time using a script but I can't find a way of > the password being added as well. Does anyone know of a method of > doing this? You are adding them without "adduser" command? Like using edauth command? Well, why not give them passwords with "passwd"? Look below. ------------------------------------- #!/usr/bin/zsh UNAME=$1 UPASS=$2 passwd $UNAME << END_OF_PASS p $UPASS $UPASS END_OF_PASS ------------------------------------- That should do it. The other alternative is C programming, which you don't wanna do. BTW, what other steps, aside from "edauth", (or whatever) are you taking to insure the consistancy of the C2 databases? CU, Nix.