Re: [SLUG] users/passwords expiring

From: Steve Szmidt (steve@szmidt.org)
Date: Fri Aug 27 2004 - 14:49:32 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 27 August 2004 02:02 pm, Mario Lombardo wrote:
> I'm getting some users/passwords expiring:
>
> "Your account has expired; please contact your system administrator"
>
> I'm not sure where else to look besides, /etc/passwd
> I don't see anything interesting.
> How do I ensure the account doesn't expire?
>
> /mario

In /etc/shadow you have the following felds:
(You also have the command passwd. Read the man page for it.)

Username, up to 8 characters. Case-sensitive, usually all lowercase. A direct
match to the username in the /etc/passwd file.

Password, 13 character encrypted. A blank entry (eg. ::) indicates a password
is not required to log in (usually a bad idea), and a ``*'' entry (eg. :*:)
indicates the account has been disabled.

The number of days (since January 1, 1970) since the password was last
changed.

The number of days before password may be changed (0 indicates it may be
changed at any time)

The number of days after which password must be changed (99999 indicates user
can keep his or her password unchanged for many, many years)

The number of days to warn user of an expiring password (7 for a full week)

The number of days after password expires that account is disabled

The number of days since January 1, 1970 that an account has been disabled

A reserved field for possible future use
- --
Steve

"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
                                Benjamin Franklin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBL4I/ljK16xgETzkRArPtAJ0dsDdk9JB6hRYKSR38CWxoJ/ViJQCgtc1P
uOsJIaeFU5lq6Wj7AcH/NBg=
=we3X
-----END PGP SIGNATURE-----

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:34:45 EDT