[Gllug] non-interactive passwd

Tethys tet at accucard.com
Thu May 8 12:09:18 UTC 2003


Murray Peterson writes:

>passwd $USER $PASSWORD or passwd $USER << echo $PASSWORD
>
>I am trying to do this on solaris and aix, but I would imagine that
>linux would have much the same reaction :)

Actually no. Under Linux, it's easy because passwd accepts a --stdin
option to accept piped input from elsewhere:

	echo $password | passwd --stdin $user

Solaris and AIX aren't so accomodating. You might want to try building
the Linux passwd on ther other OSen, and see if you can get it to work
that way.

Tet


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list