Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-29-2014, 09:38 AM   #1
Senior Member
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,226
Blog Entries: 4

Rep: Reputation: 132Reputation: 132
Understanding output of passwd -S

I Googled around for this before posting here. I was suprised not to find any answer.

Have a user account locked out and I was able to unlock it (passwd -u username) and then force them to change their passwd in 60 days (chage -M 60 username). The user tells me that they still can't get it.

I checked the man page before doing anything with their password and found the command passwd -S

Here is the output

username PS 2014-10-27 1 60 7 -1 (Password set, SHA512 crypt.)
I understand the username

The date is when the passwd was last set

The number 60 is from the chage -M 60 command

I'm not sure what PS is or means. I think the first number 1 is tied to Mimimum number of days between password change and the number 7 is tied to number of days of warning before password expires. The same info from chage -l username, correct?

What is the -1 for?
Old 10-29-2014, 09:57 AM   #2
LQ Newbie
Registered: Oct 2014
Distribution: Centos 6.5
Posts: 16

Rep: Reputation: Disabled
You need to work on your google skills. This was the first link when googling for "passwd -S"

-S, --status
Display account status information. The status information consists
of 7 fields. The first field is the user's login name. The second
field indicates if the user account has a locked password (L), has
no password (NP), or has a usable password (P). The third field
gives the date of the last password change. The next four fields
are the minimum age, maximum age, warning period, and inactivity
period for the password. These ages are expressed in days.
Old 10-29-2014, 10:38 AM   #3
Senior Member
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,226
Blog Entries: 4

Original Poster
Rep: Reputation: 132Reputation: 132
Originally Posted by grubby View Post
You need to work on your google skills.

Thanks, we all search differently.


linux, passwd -d

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding /etc/passwd NotionCommotion Linux - Newbie 5 03-30-2014 01:38 PM
understanding stat() output TheIndependentAquarius Programming 5 02-23-2010 01:37 AM
understanding netstat output namradi Linux - General 10 01-22-2007 02:04 AM
understanding lm_sensors output Pete Dogg Linux - Software 7 10-15-2003 02:28 AM
Understanding CRON output lhoff Linux - General 1 05-19-2003 02:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration