how to enable account expired

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

how to enable account expired

Post by raghavan20 »

i enabled account expiration for one user and it stopped the user from logging it after password expired. i wanted to enable the user account again. i now opened the /etc/shadow file and changed one of the values, day before required to 99999 which was 20 earlier...is this the proper way of doing it? if i want to set the pasword expiration again to 25 days,,,how do i do this?

i have a line in /etc/shadow

Code: Select all

rag:passwd.:0:18:20:20:1::
i have set number of days before password is changed to zero
number of days before can be changed: 20
number of days after password should be changed: 20
number of days before warning is provided: 20
number of days after account expires after password expiration: 1

but it still keeps saying when i put su rag, "You are required to change your password immediately (root enforced)". why?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

man usermod
User avatar
raghavan20
DevNet Resident
Posts: 1451
Joined: Sat Jun 11, 2005 6:57 am
Location: London, UK
Contact:

Post by raghavan20 »

i know what the line in /etc/shadow means but it does not seem to work in the way i think, i want someone to point out where i am making the mistake and tell me why the system is giving that error.
Post Reply