[Gllug] non-interactive passwd

John Edwards John.Edwards at cornerstonelinux.co.uk
Thu May 8 15:12:14 UTC 2003


On Thu, May 08, 2003 at 01:09:18PM +0100, Tethys wrote:
> 
> 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

Hi
RedHat's passwd program can do stdin, but not the one in Debian (as 
of 3.0) or SuSE (as of 7.1).


-- 
#--------------------------------------------------------#
|       John Edwards    Email: John.Edwards at uk.com       |
|                                                        |
|  "SEP is intended as a management routing protocol,    |
|   and should not be used in a production enviroment."  |
#--------------------------------------------------------#


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




More information about the GLLUG mailing list