Operating System - HP-UX
1821808 Members
3156 Online
109638 Solutions
New Discussion юеВ

Re: user account : access is denied

 
madhudeepan
Frequent Advisor

user account : access is denied

when i try to su to another user ,,, it says access is denied, when i found with /usr/lbin/getprpw/ cmd the status is 100100 ,,,when i use modprpw cmd,, the lock is not enabled,, how i can remove the lock
7 REPLIES 7
Mel Burslan
Honored Contributor

Re: user account : access is denied

This user is locked due to too many failed login attempts

USER=myusername
/usr/lbin/modprpw -l -m alock=NO $USER #removes lock
/usr/lbin/modprpw -k $USER #resets failed login count

Hope this helps
________________________________
UNIX because I majored in cryptology...
Ganesan R
Honored Contributor

Re: user account : access is denied

Hi,

Another simple way is goto SAM->Accounts for Users and Groups->Users-> select the user -> Goto Actions -> Reactivate the account

You can login now.
Best wishes,

Ganesh.
rmueller58
Valued Contributor

Re: user account : access is denied

Pass the user parameter into this command:

/usr/lbin/modprpw -k $1

/usr/lbin/modprpw -k username
avizen9
Esteemed Contributor

Re: user account : access is denied

hello
you will also get some help from below threads, pls go through it, thanks


https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1106305
Sajjad Sahir
Honored Contributor

Re: user account : access is denied

Dear friend

#modprpw -k username

thanks and regards

Sajjad Sahir

Johnson Punniyalingam
Honored Contributor

Re: user account : access is denied

Hi ,

Above comments , have explained how to enable user account if its locked.

User account gets locks due to unsucesfull login attempts or accounts devactivated if password has been expired.

You can always check before enabling by below will give lot information

# /usr/lbin/getprpw -l
#/usr/lbin/modprpw -k

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
johnsonpk
Honored Contributor

Re: user account : access is denied

Hi ,

The account lock out because of two reasons
1)password life time expires
2)exceeded unsuccessful login attempts

1)You may need to unlock the id with
#modprpw -k
2)and reset the password for that user.



lockout
returns the reason for a lockout in a "bit" valued string, where 0 = condition not present, 1 is present. 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 *


Thanks!!
Johnson