[Gllug] non-interactive passwd

Jason Clifford jason at ukpost.com
Thu May 8 12:02:18 UTC 2003


On Thu, 8 May 2003, Murray Peterson wrote:

> I was wondering if there is any appropriate way of setting a password for
> a user account without running passwd interactively?
> 
> essentially I am trying to automagically create accounts on a number
> boxen by script and need to do something like this: (and nis, ldap etc is
> unfortunately not an option...)
> 
> passwd $USER $PASSWORD or passwd $USER << echo $PASSWORD

Have you tried "man passwd"?

Usually there is an option allowing you to take the new password from 
STDIN.

Jason Clifford
-- 
UKFSN.ORG		Finance Free Software while you surf the 'net
http://www.ukfsn.org/			Sign up now



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




More information about the GLLUG mailing list