From owner-freebsd-questions Thu Dec 16 21:15: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scotty.masternet.it (scotty.masternet.it [194.184.65.2]) by hub.freebsd.org (Postfix) with ESMTP id 0D1E7150E1 for ; Thu, 16 Dec 1999 21:15:03 -0800 (PST) (envelope-from gmarco@scotty.masternet.it) Received: from suzy (modem14.masternet.it [194.184.65.24]) by scotty.masternet.it (8.9.3/8.9.3) with ESMTP id GAA97507; Fri, 17 Dec 1999 06:14:56 +0100 (CET) (envelope-from gmarco@scotty.masternet.it) Message-Id: <4.2.0.58.19991217060155.00a82420@194.184.65.4> X-Sender: gmarco@scotty.masternet.it X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Fri, 17 Dec 1999 06:03:40 +0100 To: Brant Brookie , freebsd-questions@FreeBSD.ORG From: Gianmarco Giovannelli Subject: Re: using the pw command In-Reply-To: <38595914.6D4A2EE1@fastserve.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 16/12/99, Brant Brookie wrote: >I am having difficulty adding a user from my webform vi a perl script. >Here is the command that I have been using, (3.2-RELEASE FreeBSD) > >system("echo $password | pw useradd $username -d $home/$username -m -k >$skeletondir"); > >It adds the user just fine, but I can't seem to log in under the user. >Only when I change the password, can I telnet in without a password >error. > >Any help is greatly appreciated. Thank you in advance. > >Brant Brookie I think you should add a second command to modify the pwd: system("echo $password | pw usermod $username -h 0"); Please let me know if it helps... Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://www.giovannelli.it/~gmarco http://www2.masternet.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message