Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 18:45:43 GMT
From:      Chris Jesseman <chris@sitemajic.net>
To:        <freebsd-isp@FreeBSD.ORG>
Subject:   Re: pw & passwords
Message-ID:  <20000918.18454343@mis.configured.host>
In-Reply-To: <001f01c02138$ab377f00$2ac21ecb@actweb.net>
References:  <4.3.2.7.2.20000918011343.0f70d1a8@mail.mikesweb.com> <001f01c02138$ab377f00$2ac21ecb@actweb.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Can something like this be used to change users passwords?

Thanks,
Chris Jesseman

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 9/18/00, 2:21:23 AM, "Matthew Horoschun" <matthew@actweb.net> wrote=20=

regarding Re: pw & passwords:


> > it a password directly without it needing to prompt me for it. The=20=

closest
> > I can come, is the "-h fd" flag, but I'm not overly sure how to pull=
 that
> > one off..

> Hi Mike,

> Something like this will do it:

> $execcmd =3D "echo $password | pw useradd -m -n $user -c \"$fullname\"=
 -g
> mygroup -s nologin -h 0";

> Cheers

> Matthew.

> --
> Matthew Horoschun
> Network Administrator
> ActWEB.NET Pty. Ltd.



> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000918.18454343>