Single line password reset.

Hi,

I need to know if this command

echo NEWPASSWORD | passwd --stdin USERNAME

that works fine on Red Hat Linux, is also available on other Unix/Linux machines (AIX, FreeBSD, OpenBSD, SunOS, Mandrake, Debian, Gentoo, Lindows, Slackware, Xandros, HP-UX, IRIX, SCO, MacOS, BSDi ...).

Thanks in advance,
Margi.

The answer is no. For example "--stdin" is not UNIX/POSIX
-complaint syntax.

  • Finnbarr

Thx Finnbarr,

Is there another way to avoid the 'new password' input prompt??

Margi.