HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- recording successful pwd changes via putprpwnam()
Operating System - HP-UX
1833777
Members
1816
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
05-11-2004 04:48 AM
05-11-2004 04:48 AM
recording successful pwd changes via putprpwnam()
I am testing a password changing application that uses the putprpwnam() function to update the "u_pwd" field of a user's record
in a Trusted system database: this works fine.
I also attempt to time stamp password changes; by setting the "u_succhg" field:
This only works if the record already contains
that field.
The majority of my Trusted system records lack a "u_succhg" field: what tool could I use
to create the missing entries?
David.
in a Trusted system database: this works fine.
I also attempt to time stamp password changes; by setting the "u_succhg" field:
This only works if the record already contains
that field.
The majority of my Trusted system records lack a "u_succhg" field: what tool could I use
to create the missing entries?
David.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2004 05:00 AM
05-11-2004 05:00 AM
Re: recording successful pwd changes via putprpwnam()
IMHO its modified by passwd command.
From the prpasswd(4) man pg:
u_succhg The time in this field is a time_t value that indicates the time of the last successful password change. This field should only be set by programs that can be used to change the account password.
What type of value are you using there, not some int/long but time_t I guess?
I mean it looks like digging a little bit about syscalls used by passwd could also help.
rgds
Zeev
From the prpasswd(4) man pg:
u_succhg The time in this field is a time_t value that indicates the time of the last successful password change. This field should only be set by programs that can be used to change the account password.
What type of value are you using there, not some int/long but time_t I guess?
I mean it looks like digging a little bit about syscalls used by passwd could also help.
rgds
Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 04:35 AM
11-08-2004 04:35 AM
Re: recording successful pwd changes via putprpwnam()
Needed to set the relevant flag in
the bitmap structure for getprpwent(3) routines.
prpwd.uflg.fg_schange=1; prpwd.ufld.fd_schange=tstamp;
...before calling putprpwnam().
the bitmap structure for getprpwent(3) routines.
prpwd.uflg.fg_schange=1; prpwd.ufld.fd_schange=tstamp;
...before calling putprpwnam().
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP