How to update login retries and password aging for a user (335 Views)
Reply
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 1 of 18 (335 Views)
Accepted Solution

How to update login retries and password aging for a user

I am new to Unix administration, I would like to know how to update login retries and password aging for any particular user
Honored Contributor
Patrick Wallek
Posts: 13,786
Registered: ‎06-21-2000
Message 2 of 18 (335 Views)

Re: How to update login retries and password aging for a user

You can either go through SAM -> Accounts for Users and Groups -> Users, select the user from the list, go to the ACTIONS menu and select 'Modify Security Policies'. This will then allow you to modify the security settings for that particular user.

Or if you are feeling adventurous at the command line, you can have a look at the modprpw command ('man modprpw' for details if you are on 11.11 or higher).
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 3 of 18 (335 Views)

Re: How to update login retries and password aging for a user

You can do it by command line or with sam.

sam -> Accounts for user and groups -> users -> select a user and go to modify action.

You can use passwd or modprpw utility for password aging on non-trusted or trusted mode.

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 4 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Reference document:

http://docs.hp.com/en/32650-90498/ch03.html

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 5 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Hi Vaish,

A one stop solution,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=948182

This thread has got everything you need.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 6 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Related search.

http://www1.itrc.hp.com/service/james/search.do?todo=search&admit=-682735245+1142485977775+28353475&...

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 7 of 18 (335 Views)

Re: How to update login retries and password aging for a user

http://docs.hp.com/en/B2355-90121/

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 8 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Thanks everybody,

Do anyone know how to set them ( password aging and login retries) in command line ?
In my system "passwd -n 7 username" is not working. I have the following errors "Usage: passwd [ name ]
Options not available using /sbin/passwd
Must invoke /bin/passwd to use options".
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 9 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Don't use /sbin/passwd. It is used on single user mode. Try to use as,

/usr/bin/passwd -n 7

It will work.

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 10 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Vaish,

You can try with /bin/passwd instaed of /sbin/passwd. Try to run with full path. It will solve your problem.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 11 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Thanks a lot
I have reset the password. How to set the login retry for the user id in command line
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 12 of 18 (335 Views)

Re: How to update login retries and password aging for a user

I would like to have maximum 5 retries for particular logins. How I do it in command line ?
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 13 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Are you asking about "number of times a user can try to put login and password" details in a login prompt. I hope it is by default 3. No setting to change it to less or more.

If you want then you have to write your own PAM module to get that effect.

--
Muthu
Easy to suggest when don't know about the problem!
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 14 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Ok, thanks
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 15 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Hope you are new member. Once you get a solution or guidance try to assign points in your thread. Read forums guideline document.

--
Muthu

Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 16 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Hi Vaish,

"sam" is the best tool for administring HP-UX. Also, do a search in itrc, you will find tons of information. You can close this thread in case, your problem got solved.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Frequent Advisor
vaish
Posts: 36
Registered: ‎02-22-2006
Message 17 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Thanks, I found the solution
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 18 of 18 (335 Views)

Re: How to update login retries and password aging for a user

Hi Vaish,

Check this thread for more information for max login tries

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=574990

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.