Re: [SLUG] users/passwords expiring

From: Mario Lombardo (mario@alienscience.com)
Date: Fri Aug 27 2004 - 16:18:17 EDT


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

Actually that one modifies the eighth field in /etc/shadow. I need to modify
the fifth field. From 'man shadow'

int sp_max; /* days before change required */

See the following example from /etc/shadow:

BEFORE:
killme:[erased]:12657:0:0:7:::

AFTER (usermod -e 2030-01-01 killme):
killme:[erased]:12657:0:0:7::21915:

CORRECT:
killme:[erased]:12657:0:99999:7:::

The fifth field needs to become 99999. I'll have to figure out how to do this
with a command rather than hacking it. Also, I still don't know what
program made these users like this.

/mario

On Friday 27 August 2004 14:58, you as Eben King wrote:
> On Fri, 27 Aug 2004, 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?
>
> Maybe "usermod -e <something> username"? I guess you could use some
> far-off date for <something>.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBL5cJ0rzDqf+VzP0RAqGzAKCt2JdWOro5QBELeXf70EwTCkZv9ACfTUaW
TE6ntRZk2r4OCgtxKukfgV0=
=0AXn
-----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:35:35 EDT