Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check which user's password is expiring

Status
Not open for further replies.

MHU

MIS
Jan 26, 2002
3
SG
Hi,

I would like to check the user password that is going to be expired or has expired. Is there anyone out there have any expirience writing a bourne shell script to do the checking??

Thks & Rgds,
MHU
 
in command line

# passwd -s <username>

then will you see the status of User's passwd

NP======> no paswd
LK======> locked
PS======> passwded

Forcing the account Fregal to change its password every 15 days.

# passwd -n 15 Fregal

2. Forcing the account REGAL to change its password on the next login.

# passwd -f REGAL


.

Farah regal
good luck
&quot;think twice and hit enter once&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top