Operating System - HP-UX
1832995 Members
2219 Online
110048 Solutions
New Discussion

Re: enabling a user account

 
SOLVED
Go to solution
Indrajit Bhagat
Regular Advisor

enabling a user account

how can enable user account in Hp-ux if get disable.

# grep l343871 /etc/passwd
l343871:*:10967:103:Richard Hepworth:/home/l343871:/usr/bin/ksh
i want to enable this user.

8 REPLIES 8
Ivan Krastev
Honored Contributor
Solution

Re: enabling a user account


To re-enable a disabled user account on the system using SAM:

Select the Accounts for users and groups section.
Select users.
Select the user account that is disabled.
With the disabled user account selected, go to the top of the screen and select Actions.
Select Reactivate to reactivate the disabled account.


regards,
ivan
Indrajit Bhagat
Regular Advisor

Re: enabling a user account

Hi , actually sam is not working, so it need some command based.
Srikanth Arunachalam
Trusted Contributor

Re: enabling a user account

Hi,

You could make use of

usermod -x administrative_lock_applied=0 "User account"
from super user account.

If there are too many condition for disabling an account use then,

usermod -x grace_limit=1
will bypass most of the disabling conditions
for one day. This allows the user to log in
and clear the disabling condition

Thanks,
Srikanth
Aneesh Mohan
Honored Contributor

Re: enabling a user account

#passwd -d loginname ---- to enable login


fyi:-

passwd -d

Allow user to login without a password by deleting it.This option unlocks/activates the user account if found locked/deactivated.


Aneesh
Robert Salter
Respected Contributor

Re: enabling a user account

On a trusted system, try
/usr/lbin/modprpw -k l343871

This will unlock/enable the user's account.

To see if a user's account is locked and why use;
/usr/lbin/getprpw -m lockout l343871

do a mna on getprpw to see what the bit positions mean.


robert
Time to smoke and joke
Robert Salter
Respected Contributor

Re: enabling a user account

Sorry, that was meant to be do a "man" on getprpw.
Time to smoke and joke
skt_skt
Honored Contributor

Re: enabling a user account

see this details too. modprpw is the one need.


It only takes one of these settings to equal 1 for the account to be locked.


Active user account:
$ /usr/lbin/getprpw -r -m lockout user1
0000000

Deactivated (locked) user account:
$ /usr/lbin/getprpw -r -m lockout user2
0000001


REASON[1]="past password lifetime"
REASON[2]="past last login time"
REASON[3]="past absolute account lifetime"
REASON[4]="exceeding unsuccessful login attempts"
REASON[5]="password required and a null password"
REASON[6]="admin lock"
REASON[7]="password is a *"
Sp4admin
Trusted Contributor

Re: enabling a user account

As stated above.

#getprpw -r -m lockout userId
#modprpw -k userid

sp,