Date: Mon, 4 Dec 2000 14:17:01 +1100 (EST) From: Andy Farkas <andyf@speednet.com.au> To: Tim McCullagh <timbo@halenet.com.au> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Creating a pw.conf file Message-ID: <Pine.BSF.4.21.0012041409420.30136-100000@backup.af.speednet.com.au> In-Reply-To: <03a001c05cd3$64e8b100$6500a8c0@halenet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0012041409420.30136-100000>
