From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bafb83d84c106f65 X-Google-Attributes: gidfee84,public From: "Graham Jones" Subject: Re: Change password on OSF1 Date: 1997/09/10 Message-ID: <01bcbdf5$ee180500$0100007f@graham>#1/1 X-Deja-AN: 271305676 References: <34100586.AD5@ville-ge.ch> X-NNTP-Posting-Host: liteyear.demon.co.uk [194.222.31.221] Newsgroups: comp.unix.osf.osf1 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 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 > ----------------------------------------------------------- >