Re: [SLUG] users/passwords expiring

From: Steve Szmidt (steve@szmidt.org)
Date: Fri Aug 27 2004 - 18:23:11 EDT


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

On Friday 27 August 2004 04:18 pm, Mario Lombardo wrote:
> 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.

Probably default install. You can normally hack these files without penalty as
long as you are consistent between them. They are read each time and are not
buffered by some program. So if you mess up you can fix them.

The ones with a tilde (~) are backups and can be ignored.

> /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>.
>
> -----------------------------------------------------------------------
> 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.

- --
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)

iD8DBQFBL7RSljK16xgETzkRAhjbAJ9/H6ZpB6s19gRKcWxWz9AvwxzBIwCgm6RL
rvr5GXOSx92rGFmnM417YNU=
=PKuj
-----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:36:37 EDT