|
Posted by smcracraft on February 5, 2008, 12:53 am
Please log in for more thread options passwd does not have a --stdin on most vendor Unixes because
it is considered a security flaw.
I should have been more specific to exclude the above "--stdin"
from the requirement.
> Greets,
>
> On Mon, 04 Feb 2008 19:42:38 -0800,smcracraftwrote:
> > Hi,
>
> > Anyone know of aPerlprogram that can run Unix passwd and set a
> > particular password for a particular user?
>
> On my system at least, `passwd` has a --stdin option:
> "This option is used to indicate that passwd should
> read the new password from standard input,
> which can be a pipe."
>
> So opening a pipe to '| passwd --stdin username' should work.
>
> HTH,
> Pat D
|