Unable to change password | Unix Linux Forums | HP-UX

  Go Back    

HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Unable to change password


Closed Thread    
Thread Tools Search this Thread Display Modes
Old 01-29-2013
solaris_1977 solaris_1977 is offline
Registered User
Join Date: Mar 2011
Last Activity: 28 February 2015, 3:42 PM EST
Posts: 368
Thanks: 34
Thanked 4 Times in 4 Posts
Unable to change password

I need to change password of a non-root user on HPUX. Due to some local policy, it is not allowing me to do so. I need to keep same (previous) password, as that is application user. Can I bypass policy for this time, for this user somehow ? I am root on this machine.
HTML Code:
# uname -a
HP-UX thprnv02 B.11.23 U 9000/800 2363933443 unlimited-user license
# passwd grewd8a
Changing password for grewd8a
Last successful password change for grewd8a: Mon Jan 28 13:30:38 2013
Last unsuccessful password change for grewd8a: Mon Jan 28 13:30:12 2013
Do you want (choose one letter only):
        pronounceable passwords generated for you (g)
        a string of characters generated (c) ?
        a string of letters generated (l) ?
        to pick your passwords (p) ?
Enter choice here: p
New password:
You may not re-use the same password.
Password must contain at least two alphabetic characters and
at least one numeric or special character.
Sponsored Links
Old 01-29-2013
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
Join Date: Dec 2003
Last Activity: 13 May 2013, 9:02 AM EDT
Location: Melbourne, Australia
Posts: 2,185
Thanks: 3
Thanked 24 Times in 23 Posts

# /sbin/passwd username

That should bypass the security policy.

Sponsored Links
Old 01-29-2013
RudiC RudiC is online now Forum Advisor  
Registered User
Join Date: Jul 2012
Last Activity: 1 March 2015, 11:39 AM EST
Location: Aachen, Germany
Posts: 5,412
Thanks: 94
Thanked 1,409 Times in 1,327 Posts
If I get you correcetly, you want to "change" the user's password to the same string, which passwd does not allow you to do and which is not too logical either, btw. Why "change" at all? Is it to overcome sth like the password age restrictions? Then - why not modify those for that special user?
Old 02-03-2013
Arhgathornh Arhgathornh is offline
Registered User
Join Date: Feb 2013
Last Activity: 3 February 2013, 7:17 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
On trussted systems there is a file called "/etc/default/security". Check the value of PASSWORD_HISTORY_DEPTH.
for example PASSWORD_HISTORY_DEPTH=5, this will not allow you to use the same five last passwords you have been used. You can now just reset user's password five times to some random passwords, and the next time it will allow you to reset password to which you want.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
unable to change the root password? ungalnanban UNIX for Advanced & Expert Users 6 08-21-2010 05:46 PM
Unable to change password for a user. eckmanb Solaris 11 04-21-2010 04:41 PM
Unable To Change a User's Password Waitstejo UNIX for Dummies Questions & Answers 2 04-06-2009 04:58 AM
Unable to change root password jagan_kalluri HP-UX 4 09-10-2008 05:59 PM
unable to change password girish_shukla SCO 1 11-08-2006 10:30 AM

All times are GMT -4. The time now is 12:39 PM.