From owner-freebsd-questions Fri Sep 14 16:45:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wintermute.at.org (wintermute.at.org [64.69.77.155]) by hub.freebsd.org (Postfix) with ESMTP id A90F037B40B for ; Fri, 14 Sep 2001 16:45:20 -0700 (PDT) Received: from barney.intergate.ca (bambam [216.232.225.42]) by wintermute.at.org (8.11.3/8.11.3) with ESMTP id f8EH3Cv26577 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK) for ; Fri, 14 Sep 2001 17:03:17 GMT Received: (from sellis@localhost) by barney.intergate.ca (8.11.3/8.11.3) id f8ENr1f03151 for freebsd-questions@freebsd.org; Fri, 14 Sep 2001 16:53:01 -0700 Date: Fri, 14 Sep 2001 16:53:01 -0700 From: Sean Ellis To: freebsd-questions@freebsd.org Subject: pw -h Message-ID: <20010914165301.A3127@telus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm looking to give a list of users passwords from a second list via a shell script, with no success. I thought this would work, #!/usr/local/bin/bash exec 6<&0 exec < pasz for i in `cat users` do cat | pw usermod -n $i -h 0 done but this gives: pw: empty password read on file descriptor 0 can anyone offer any suggestions, thanks, -- Sean "I've had a terrible experience," Leo said, "in Palmer Eldritch's domain. He's a damn magician, Barney ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message