- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can't change an expired password account
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
11-19-2007 03:17 AM
11-19-2007 03:17 AM
I've got an HP-UX 11.11 box that is Trusted. I'm experiencing something weird today.
When a user that is password has experied tries to login, he is prompted for is Old password, then the system says Sorry. and ask again for the Password:
Your password has expired.
Changing password for jcaplett
Old password:
Sorry.
Password:
Changing password for jcaplett
Old password:
Sorry.
Password:
It just don't stop looping and asking for Old password... I tried this with my account, and I'm positively sure that I type correctly my password. The account is not disable, neither locked...
Any idea on what can cause that?
Regards
Jonathan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 03:25 AM
11-19-2007 03:25 AM
Re: can't change an expired password account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 03:26 AM
11-19-2007 03:26 AM
Re: can't change an expired password account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 03:35 AM
11-19-2007 03:35 AM
Re: can't change an expired password account
# /usr/lbin/getprpw -m lockout jcaplett
lockout=0000000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 04:10 AM
11-19-2007 04:10 AM
Re: can't change an expired password account
/usr/lbin/getprpw user
and then cat /tcb/files/auth/system/default.
You may have a system-wide default that is killing you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 05:04 AM
11-19-2007 05:04 AM
Re: can't change an expired password account
# /usr/lbin/getprpw jcaplett
uid=109, bootpw=NO, audid=21, audflg=1, mintm=2, maxpwln=-1, exptm=45, lftm=90, spwchg=Wed Dec 31 19:00:00 1969, upwchg=Mon Nov 19 10:47:26 2007, acctexp=-1, llog=90, expwarn=14, usrpick=DFT, syspnpw=NO, rstrpw=YES, nullpw=DFT, admnum=-1, syschpw=NO, sysltpw=DFT, timeod=-1, slogint=Mon Nov 19 10:46:51 2007, ulogint=Mon Nov 19 10:47:26 2007, sloginy=console, culogin=-1, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0000000
# cat /tcb/files/auth/system/default
default:\
:d_name=default:\
:d_boot_authenticate@:\
:u_pwd=*:\
:u_owner=root:u_auditflag#-1:\
:u_minchg#0:u_maxlen#15:u_exp#0:u_life#0:\
:u_llogin#0:u_pw_expire_warning#0:u_pswduser=root:u_pickpw:\
:u_genpwd@:u_restrict@:u_nullpw@:u_genchars@:\
:u_genletters@:u_suclog#0:u_unsuclog#0:u_maxtries#3:\
:u_lock:\
:t_logdelay#2:t_maxtries#3:t_login_timeout#60:\
:chkent:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 05:34 AM
11-19-2007 05:34 AM
Re: can't change an expired password account
spwchg=Wed Dec 31 19:00:00 1969
When adjusted for your timesone that is 1-Jan-1970 00:00:00 UTC (the zero epoch second) and it means change the password at the first login. In effect, passwd -f has been run on all users. There is no facility in modprpw to set the spwchg field (time of last sucessfull password change) although the putprpwnam() function can be used to set it or you could write some Perl, sed, or awk to edit the /tcb entry for each user to substitute a more recent password change timestamp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 05:42 AM
11-19-2007 05:42 AM
Re: can't change an expired password account
Is this happened only on users that have there password expired?
And will this happen evrey time change that we have? Last time change have been done on November 4th 2007..
Jonathan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2007 08:07 AM
11-19-2007 08:07 AM
Re: can't change an expired password account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2007 06:15 AM
11-20-2007 06:15 AM
Re: can't change an expired password account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2007 07:31 AM
11-20-2007 07:31 AM
SolutionThe attached, UNTESTED shell script should work. The step that copies the temporary file back to the tcb file is intentionally commented out. Uncomment it after you are satisfied.
Before doing anything else be logged in as root in at least two sessions so that you can get yourself out of trouble almost as fast as you got yourself in.
Next:
cd /
find ./tcb -print | cpio -ocv > /aaa/bbb/tcb.cpio # a backup of the tcb database
To run the script, simply "fixit.sh". It will look for all UID's >= 101 and then edit each tcb file saving it to a temporary file. When uncommented the temporary file is copied to the original for each user with a current timestamp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2007 08:16 AM
11-20-2007 08:16 AM
Re: can't change an expired password account
I now have to look why that date have been changed...
regards
Jonathan
now closing this tread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2007 08:30 AM
11-20-2007 08:30 AM
Re: can't change an expired password account
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2007 08:52 AM
11-28-2007 08:52 AM
Re: can't change an expired password account
/usr/lbin/modprpw -v [username]