- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: variables password
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
Discussions
Discussions
Forums
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
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
тАО07-22-2002 11:55 AM
тАО07-22-2002 11:55 AM
variables password
I??d like know how can I discovery the password,s age. For Example: The user change his password ysterday, and then made 2 (two) days . How can I get this number ??
Thanks for all !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:00 PM
тАО07-22-2002 12:00 PM
Re: variables password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 01:47 PM
тАО07-22-2002 01:47 PM
Re: variables password
you would have to use "password aging" on all the users where you need to collect/keep that piece of information. See the man page for "passwd(1M)" for the details (options -n and -x, IIRC).
Then the week (since 1970, 1st of Jan) is stored in the third and fourth character followinf the comma in the second field in your "/etc/passwd"... (modulo 64, of course and coded like this: /=0 .=1 0=2 ..9=11 A=12 .. z=63, again IIRC).
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 01:55 PM
тАО07-22-2002 01:55 PM
Re: variables password
you can try /usr/lbin/getprpw userid
and look for spwchg field in the output for the last password change.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 01:58 PM
тАО07-22-2002 01:58 PM
Re: variables password
last successful password change time
# /usr/lbin/getprpw -r -m spwchg fredb
Mon Jun 17 10:20:56 2002
Password expiry in days
# /usr/lbin/getprpw -r -m exptm fredb
3
Have a look at the man pages for this from this link:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xebf46c96588ad4118fef0090279cd0f9,00.html
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 02:09 PM
тАО07-22-2002 02:09 PM
Re: variables password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 10:27 PM
тАО07-22-2002 10:27 PM
Re: variables password
live as you wish
ux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 11:22 PM
тАО07-22-2002 11:22 PM
Re: variables password
the getpw* functions of the C lib are also available in Perl
e.g.
perl -e '$expire = (getpwuid 0)[9];printf "expiration for root: %s\n"
, defined $expire ? $expire : "not set"'
At the shell type for instance
perldoc -f getpwnam
to find out more...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 05:08 AM
тАО07-25-2002 05:08 AM
Re: variables password
Because, we have 8 severs, and some users have user id in all servers.
PS: without use NIS.
Yhanks ???