* Change password on OSF1
@ 1997-09-05 4:00 Andreas Knabe
1997-09-05 4:00 ` Paul D. Chapin
1997-09-10 4:00 ` Graham Jones
0 siblings, 2 replies; 4+ messages in thread
From: Andreas Knabe @ 1997-09-05 4:00 UTC (permalink / raw)
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
-----------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Change password on OSF1
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
1 sibling, 1 reply; 4+ messages in thread
From: Paul D. Chapin @ 1997-09-05 4:00 UTC (permalink / raw)
Andreas Knabe (andreas.knabe@ville-ge.ch) wrote:
: I'm search a program for change OSF1 user password from a script ...
It's not clear what you're looking for. Are you looking for a way to
change a password without using the "passwd" command?
--
Paul Chapin
pdchapin@unix.amherst.edu
Unix Systems Manager I'm too busy to have time
Amherst College for anything important.
413-542-2144
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Change password on OSF1
1997-09-05 4:00 ` Paul D. Chapin
@ 1997-09-18 4:00 ` Clayton Burton
0 siblings, 0 replies; 4+ messages in thread
From: Clayton Burton @ 1997-09-18 4:00 UTC (permalink / raw)
I know exactly what Andreas is talking about.
I've ran into problems changing users' passwords from a script.
It seems that the passwd cmd refuses to take input from a pipe or from a
file redirected into it. That is, I'd expect to be able to do:
echo newpw\\nnewpasswd | passwd jsmith
or
passwd jsmith < newpasswd.txt
where newpasswd.txt contians 2 copies of the new password seperated by
a newline
But neither of these works for me under OSF1 v3.2
Paul D. Chapin wrote:
> Andreas Knabe (andreas.knabe@ville-ge.ch) wrote:
> : I'm search a program for change OSF1 user password from a script ...
>
> It's not clear what you're looking for. Are you looking for a way to
> change a password without using the "passwd" command?
>
> --
>
> Paul Chapin
> pdchapin@unix.amherst.edu
> Unix Systems Manager I'm too busy to have time
> Amherst College for anything important.
> 413-542-2144
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Change password on OSF1
1997-09-05 4:00 Change password on OSF1 Andreas Knabe
1997-09-05 4:00 ` Paul D. Chapin
@ 1997-09-10 4:00 ` Graham Jones
1 sibling, 0 replies; 4+ messages in thread
From: Graham Jones @ 1997-09-10 4:00 UTC (permalink / raw)
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
> -----------------------------------------------------------
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-09-18 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox