Page 1 of 1

how to enable account expired

Posted: Mon Sep 11, 2006 3:22 am
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?

Posted: Mon Sep 11, 2006 4:18 am
by Chris Corbyn
man usermod

Posted: Mon Sep 11, 2006 7:15 am
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.