[wplug] RE: wplug Digest, Vol 28, Issue 5

Brian A. Seklecki lavalamp at spiritual-machines.org
Thu Jun 8 00:55:15 EDT 2006


On Tue, 2006-06-06 at 12:05, Kavulick, Joanne wrote:

> Also, does anyone know how to create an account while forcing the new
> user to change a password at first login?

I'm not sure about Linux/Solaris, but FreeBSD features a "password
expiration" and "account expiration" field in the master.passwd(5)
file.  In the Linux world, this is probably going to be
distribution-independent.

Getting it to change is going to be a behavior of login(1) or whatever.

Try "man 5 shadow" on your distro:
-----------------------------------------------
SHADOW(5)

NAME
       shadow - encrypted password file

DESCRIPTION
       shadow  contains the encrypted password information for user's
accounts
       and optional the password aging information.  Included is

            Login name

            Encrypted password

            Days since Jan 1, 1970 that password was last changed

            Days before password may be changed

            Days after which password must be changed

            Days before password is to expire that user is warned

            Days after password expires that account is disabled

            Days since Jan 1, 1970 that account is disabled

            A reserved field





More information about the wplug mailing list