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

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-29-2013
solaris_1977 solaris_1977 is online now
Registered User
 
Join Date: Mar 2011
Last Activity: 24 April 2014, 3:14 PM EDT
Posts: 334
Thanks: 32
Thanked 3 Times in 3 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
    #2  
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
Try


Code:
# /sbin/passwd username

That should bypass the security policy.

Cheers,
ZB
Sponsored Links
    #3  
Old 01-29-2013
RudiC RudiC is offline Forum Advisor  
Registered User
 
Join Date: Jul 2012
Last Activity: 23 April 2014, 4:36 AM EDT
Location: Aachen, Germany
Posts: 3,534
Thanks: 51
Thanked 824 Times in 786 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?
    #4  
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 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 03:14 PM.