Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Graham Jones" <graham@xliteyear.demon.co.uk>
Subject: Re: Change password on OSF1
Date: 1997/09/10	[thread overview]
Message-ID: <01bcbdf5$ee180500$0100007f@graham> (raw)
In-Reply-To: 34100586.AD5@ville-ge.ch


It's not easy. Unix deliberately makes it so that passwd has to read from a
terminal, for security reasons. This is not very good for bulk user
additions.

On Digital Unix one way round this is this:
echo "$PASSWORD\n$PASSWORD\n" | rsh `hostname` passwd $USER

This of course assumes you have the correct /.rhosts file set up for root
rshs on your box.

This will not work on all UNIXs, however, it doesn't on AIX.

What we've done is write a couple of pages of C to pick a random alpha
numeric password and then use crypt to set this password in either
/etc/passwd or the enhanced security database. (This password is set to
expire on first login). Then output the username and password to a
temporary secure file. This is perfect for bulk user additions as the SA
can print off the password list and distribute it to the relevant manager.

If you want this code you can e me for it.

Regards
Graham Jones
graham@xliteyear.demon.co.uk

Remove x for reply

Andreas Knabe <andreas.knabe@ville-ge.ch> wrote in article
<34100586.AD5@ville-ge.ch>...
> 
> I'm search a program for change OSF1 user password from a script ...
> 
> Please help
> 
> 
> --Andreas KNABE
> 
>                          '''''
>                          (o o)
> ---------------------oOO--(_)--OOo-------------------------
>       Andreas KNABE                 Phone: +41 22 418.55.52
>     Ingenieur systemes                Fax: +41 22 418.56.01
> 
> Direction des systemes d'information de la Ville de Geneve
> 9, rue du Grand-Pre
> CH-1211 Geneve 8           Email: andreas.knabe@ville-ge.ch
> -----------------------------------------------------------
> To err is human, but to really screw up you need a computer
> -----------------------------------------------------------
> 



      parent reply	other threads:[~1997-09-10  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-05  4:00 Change password on OSF1 Andreas Knabe
1997-09-05  4:00 ` Paul D. Chapin
1997-09-18  4:00   ` Clayton Burton
1997-09-10  4:00 ` Graham Jones [this message]
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