Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!hsdndev!spdcc!dirtydog!ispd-newsserver!garden!weimer From: weimer@garden.kodak.COM (Gary Weimer (588-0953)) Newsgroups: comp.unix.wizards Subject: Re: Password Pipe Message-ID: <1991Mar26.203948.12567@ssd.kodak.com> Date: 26 Mar 91 20:39:48 GMT References: <13766@helios.TAMU.EDU> Sender: news@ssd.kodak.com Reply-To: weimer@ssd.kodak.com Organization: Eastman Kodak Co.; Rochester, NY Lines: 16 In article <13766@helios.TAMU.EDU>, packman@tamuts.tamu.edu (Wally Strzelec) writes: |> Howdy.... I am writing a short program that will allow me to change the |> password on a remote machine. To do this I am trying to use popen and |> feed it the "/etc/passwd" command on the remote machine. The problem |> is that it seems that the passwd command doesn't accept anything that |> I send down the pipe. Can someone please tell me where I am messing |> up. The following is my test: [code deleted] This may depend on your system. I've had problems trying to redirect the input of the passwd command in SunOS. If I remember correctly, it was trying to get its input directly from /dev/tty. weimer@ssd.kodak.com ( Gary Weimer )