Unix/Linux 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


Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-29-2013
solaris_1977 solaris_1977 is offline
Registered User
Join Date: Mar 2011
Last Activity: 28 September 2017, 4:34 PM EDT
Posts: 454
Thanks: 54
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 Unix and Linux 01-29-2013
zazzybob's Unix or Linux Image
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
Join Date: Dec 2003
Last Activity: 2 October 2017, 12:19 PM EDT
Location: /dev/null
Posts: 2,187
Thanks: 3
Thanked 25 Times in 23 Posts

# /sbin/passwd username

That should bypass the security policy.

Sponsored Links
Old Unix and Linux 01-29-2013
RudiC RudiC is offline Forum Staff  
Join Date: Jul 2012
Last Activity: 20 October 2017, 2:22 PM EDT
Location: Aachen, Germany
Posts: 11,479
Thanks: 310
Thanked 3,561 Times in 3,276 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 Unix and Linux 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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 04:46 PM
Unable to change password for a user. eckmanb Solaris 11 04-21-2010 03:41 PM
Unable To Change a User's Password Waitstejo UNIX for Dummies Questions & Answers 2 04-06-2009 03:58 AM
Unable to change root password jagan_kalluri HP-UX 4 09-10-2008 04:59 PM
unable to change password girish_shukla SCO 1 11-08-2006 09:30 AM

All times are GMT -4. The time now is 02:31 AM.