- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- last passwd change
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:34 PM
12-13-2007 11:34 PM
last passwd change
what is the command to see the last passwd change in hp-ux. in linux it is chage -l username.
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:39 PM
12-13-2007 11:39 PM
Re: last passwd change
# passwd -s username
or
# /usr/lbin/getprpw -m spwchng username
If the system is not trusted:
# passwd -s username
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2007 11:56 PM
12-13-2007 11:56 PM
Re: last passwd change
I am not sure if sandeep is asking the information you have given.
passwd -s <>
would show only status
PS =passworded;
LK =locked; and
NP =no password.
What he want is to see when last passwd was changed.
I am not sure about this,other than see when passwd file was modified.
Please let me know if there is smthing like this.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:22 AM
12-14-2007 12:22 AM
Re: last passwd change
# passwd -s user
user PS 10/31/07 7 90 14
The above output means:
user=user
PS=status (check the man page for possible values)
10/31/07 = date password last changed
7=minimum password age
90=max password age
14=# of days to warn before password expires
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:50 AM
12-14-2007 12:50 AM
Re: last passwd change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:51 AM
12-14-2007 12:51 AM
Re: last passwd change
but why this happned?
# passwd secroot
Changing password for secroot
New password:
Re-enter new password:
Passwd successfully changed (Today)
# passwd -s secroot
secroot PS 12/13/07 77 77 (Yesterday)
# date
Fri Dec 14 14:16:07 IST 2007
-----------
$ passwd -s secroot
secroot PS 12/13/07 77 77
$ id
uid=110(secroot) gid=20(users)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:52 AM
12-14-2007 12:52 AM
Re: last passwd change
What OS version you are running....
Anshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 12:56 AM
12-14-2007 12:56 AM
Re: last passwd change
# passwd -s user
user PS
I saw I had not activated password aging , and that is why this output.
U are absolutely right Patrick.
Sorry!!!!
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 08:24 AM
12-14-2007 08:24 AM
Re: last passwd change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 08:52 AM
12-14-2007 08:52 AM
Re: last passwd change
You have assigned points to only 1 out of the 41 replies you have received, please read forum guidelines in assigning points.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 10:12 AM
01-07-2008 10:12 AM
Re: last passwd change
cat /tcb/files/auth/u/user
this parameter:
u_succhg#1196271850
and the command line with perl
perl -e 'print localtime(1196271850)."\n"'
Wed Nov 28 15:44:10 2007
bye