[Gllug] non-interactive passwd

Murray Peterson murray at orcas.net
Thu May 8 14:09:38 UTC 2003


Hi,

> 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.

It is a pity they are not as forward-thinking as GNU people.
I'd be more inclined to use something like expect...

Murray




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




More information about the GLLUG mailing list