LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 131Reputation: 131
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

Code:
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
grubby
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"

http://www.unix.com/unix-for-dummies...at-fields.html

Quote:
-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
JockVSJock
Senior Member
 
Registered: Jan 2004
Location: SATX
Distribution: RHEL/CentOS
Posts: 1,166
Blog Entries: 4

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

Thanks, we all search differently.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 04:05 PM.

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