Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Nikola Milutinovic <milutinn@EUnet.yu>
Subject: Re: Adding passwords from a script
Date: 1998/04/18	[thread overview]
Message-ID: <3538A602.BD3AA678@EUnet.yu> (raw)
In-Reply-To: 353b7a65.81524045@news3.buffnet.net


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.





  reply	other threads:[~1998-04-18  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-17  4:00 Adding passwords from a script Jeffrey Sick
1998-04-18  4:00 ` Nikola Milutinovic [this message]
1998-04-21  4:00 ` Erik Braun
1998-04-21  4:00   ` Erik Braun
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox