Re: UNIX Password change from Windows.
Posted in 1996
> I have a program called datax - it is available from > the www site below - that could me used to do this. > eg. > #!/bin/sh > #passwd2 > echo "$1 > $1" | passwd > > datax program line: > > passwd2 {Enter Password} > I've actually tried this now and it doesnt work as above cos 1) passwd reads from /dev/tty not the standard input 2) on my box it asks for the old password first so here is a script that DOES work... -------------------------------------------------------------- # this file is called pass2 echo "$1 $2 $2" | rsh localhost passwd -------------------------------------------------------------- datax line: pass2 "{Old Password}" "{New Password}" -- Mike Aubury _\\?/_ |O O| +----------oOOO-\\_/-OOOo---------+---------------------------- -+ | Heisenberg may have been here | mike@aubury.demon.co.uk | | | http://www.flash.net/~aubit | +--------------------------------+---------------------------- -+