Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Sep 2001 16:53:01 -0700
From:      Sean Ellis <sellis@intergate.ca>
To:        freebsd-questions@freebsd.org
Subject:   pw -h
Message-ID:  <20010914165301.A3127@telus.net>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010914165301.A3127>