Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2006 01:03:07 -0500 (EST)
From:      user <user@dhp.com>
To:        freebsd-questions@freebsd.org
Subject:   how do I (non-interactively) change a users password in a script ?
Message-ID:  <Pine.LNX.4.21.0601170101390.8684-100000@shell.dhp.com>

next in thread | raw e-mail | index | archive | help

/bin/sh script.

Need to change a users password within the script based on a file of
user/pass I am feeding the script.

Easy.

Except the passwd command does not seem to be able to take a password as
an argument - I don't think that the passwd command can run
non-interactively.

So how is this done ?  It looks like the adduser script does it
non-interactively somehow ... but I don't see how.

Thanks.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0601170101390.8684-100000>