Xref: utzoo comp.unix.questions:26825 comp.unix.admin:490 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!bagate!sjuphil!brunette From: brunette@sjuphil.uucp (Glenn M. Brunette) Newsgroups: comp.unix.questions,comp.unix.admin Subject: Changing Passwords From A Batch File Message-ID: <1990Nov12.035942.14096@sjuphil.uucp> Date: 12 Nov 90 03:59:42 GMT Organization: Saint Joseph's University Lines: 33 I was wondering if it is possible to change a users password by redirecting input from a data file. At our installation, there are about 40 temporary accounts that need to exist, but because of problems that we have been having with them, we would like to set up a cron that would change the password as needed. The cron part is easy, but getting the passwd program to recognise the input redirection is what is giving us the program. Does anyone have any ideas? Ideally we would want something like this: #changepw "oldpasswd" "newpasswd" that would go through all of the desired accounts and change the passwords to those directed. BTW, we are running SunOS 4.1 on a Sun SparcServer 4/490. Thanks in advance, Glenn -- ******************************************************************************* Glenn Brunette, Academic Computing Consultant sssss ss jjjjjjj Addresses: brunette%sjuphil.sju.edu@bagate.bell-atl.com sss j brunette@sjuphil.UUCP ss j u u brunette%sjuphil.sju@sh.cs.net sssss j u u