From owner-freebsd-questions Sun Dec 3 19:17:23 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 3 19:17:21 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from backup.af.speednet.com.au (af.speednet.com.au [202.135.188.244]) by hub.freebsd.org (Postfix) with ESMTP id A4CBE37B401 for ; Sun, 3 Dec 2000 19:17:18 -0800 (PST) Received: from backup.af.speednet.com.au (backup.af.speednet.com.au [172.22.2.4]) by backup.af.speednet.com.au (8.11.1/8.11.1) with ESMTP id eB43H1F44131; Mon, 4 Dec 2000 14:17:02 +1100 (EST) (envelope-from andyf@speednet.com.au) Date: Mon, 4 Dec 2000 14:17:01 +1100 (EST) From: Andy Farkas X-Sender: andyf@backup.af.speednet.com.au To: Tim McCullagh Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Creating a pw.conf file In-Reply-To: <03a001c05cd3$64e8b100$6500a8c0@halenet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 3 Dec 2000, Tim McCullagh wrote: > 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. Useing adduser(8) for the first time will create pw.conf for you. > 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 Try using "-h 0" instead of "-h fd". man pw again! > > 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 > -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message