Date: Fri, 17 Dec 1999 06:03:40 +0100 From: Gianmarco Giovannelli <gmarco@scotty.masternet.it> To: Brant Brookie <brant@fastserve.net>, freebsd-questions@FreeBSD.ORG Subject: Re: using the pw command Message-ID: <4.2.0.58.19991217060155.00a82420@194.184.65.4> In-Reply-To: <38595914.6D4A2EE1@fastserve.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.2.0.58.19991217060155.00a82420>
