From owner-freebsd-questions Sat Dec 2 18:44:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from joe.halenet.com.au (joe.halenet.com.au [203.37.141.114]) by hub.freebsd.org (Postfix) with ESMTP id B39E137B400 for ; Sat, 2 Dec 2000 18:44:46 -0800 (PST) Received: from temp19 (modem-98-st.halenet.com.au [203.55.33.98]) by joe.halenet.com.au (8.9.1/8.9.1) with SMTP id KAA14980 for ; Sun, 3 Dec 2000 10:41:18 +1000 (EST) (envelope-from timbo@halenet.com.au) Message-ID: <03a001c05cd3$64e8b100$6500a8c0@halenet.com.au> From: "Tim McCullagh" To: Subject: Creating a pw.conf file Date: Sun, 3 Dec 2000 12:47:29 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Can anyone tell me either how to create a pw.conf file or where to find the documentation that would. I have man ed pw and pw.conf and I seem to be missing something. What I am trying to do is use the following comand within a perl script to add a user. "/usr/sbin/pw useradd -d $dir -m -s $shell -u $uid -n $username", ("echo $password | /usr/sbin/pw usermod $username -h fd") It adds the user but will not insert the password bur rather inserts a * instead The pw command works, but I have no pw.conf file. Can anyone tell me where it would be reading its defaults from. thanks Tim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message