Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)
Showing posts with label modprpw. Show all posts
Showing posts with label modprpw. Show all posts

Thursday, August 28, 2014

Reason: password lifetime has passed + HPUX

Error:

#password

Password cannot be changed. Reason: password lifetime has passed.



Solution:


1. check the lockout condition for that user by command #/usr/lbin/getprpw

lockout=1001000

The position, left to right represents:

1 past password lifetime

2 past last login time (inactive account)

3 past absolute account lifetime

4 exceeded unsuccessful login attempts

5 password required and a null password

6 admin lock

7 password is a *


2. To reset the password age to zero

# /usr/lbin/modprpw -v {username}


3. Then unlock the user account

# /usr/lbin/modprpw -k {username}

or #/usr/lbin/modprpw -m alock=no -k username


4. If the problem persist then check the /tcb/files... for a particular user. May be it has been corrupted.

so manually edit the password there.


Thanks...
Kiran Jadhaw

**Let's Share our knowledge and keep visiting here**

Wednesday, August 13, 2014

Account is disabled - see Account Administrator + hpux

Account is disabled - see Account Administrator + hpux

Check the lockout condition:
/usr/lbin/getprpw kjadhav

lockout=0000001
The position, left to right represents:

1 past password lifetime
2 past last login time (inactive account)
3 past absolute account lifetime
4 exceeded unsuccessful login attempts
5 password required and a null password
6 admin lock
7 password is a *

To enable account
/usr/lbin/modprpw –k kjadhav
To change lockout condition
#######################################
To put admin lock:
condition: lockout=0000010

/usr/lbin/modprpw -l -m alock=YES kjadhav
-m :modify
-l:local user

It will put admin lock and user will be in deactivated state.


Thanks...
Kiran Babu Jadhav

**Let's Share our knowledge**