Operating System - HP-UX
1753893 Members
7578 Online
108809 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
vaish
Frequent Advisor

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
17 REPLIES 17
Patrick Wallek
Honored Contributor

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).
Muthukumar_5
Honored Contributor

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!
Muthukumar_5
Honored Contributor

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!
Arunvijai_4
Honored Contributor

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"
Arunvijai_4
Honored Contributor

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"
vaish
Frequent Advisor

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".
Muthukumar_5
Honored Contributor
Solution

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!
Arunvijai_4
Honored Contributor

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"