Operating System - HP-UX
1830171 Members
5704 Online
109999 Solutions
New Discussion

how to Limit number of days to disable account after password expires to 90 days as a maximum

 
nataris
Advisor

how to Limit number of days to disable account after password expires to 90 days as a maximum

any one know how to Limit number of days to disable account after password expires to 90 days as a maximum?

please help suggest me

Thanks
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: how to Limit number of days to disable account after password expires to 90 days as a maximum

Shalom,

http://docs.hp.com/en/B2355-60130/passwd.1.html

We got this thing on our systems called a man page.

passwd -r files [-d|-l] [-f] [-n min] [-w warn] [-x max] name

I got this without looking at an HP-UX system because its August and I don't want my office to turn into an oven.

You can access this information with the following command:

man passwd

Take a look at /etc/default/security

Your system should already take care of this.

There is a time period after password modification during which a user id must be used successfully to prevent disable for not being used. Not much of a way around that.

-n min

Determine the minimum number of days, min, that must transpire before the user can change the password. If the -f option was used in a previous invocation of passwd to immediately expire a password, the effect of the -f option is cancelled. The effect of the -f option is not cancelled if the -x option and -f option are specified on the same command line or if the system has been converted to a trusted system.

SEP

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yogesh M Puranik
Valued Contributor

Re: how to Limit number of days to disable account after password expires to 90 days as a maximum

Hi,

Please find the below command

#passwd -n 7 -x 90 username

Abaove two options on the passwd command enable password aging. -x defines the maximum number of days a user may wait between password changes, and -n defines the minimum number of days a user may retain a password before they are allowed to change. Usually these options are used in combination

Rgds

Yogesh

(Your points are highly aapriciated)

Yogesh M Puranik
Valued Contributor

Re: how to Limit number of days to disable account after password expires to 90 days as a maximum

Hi,

Your points are highly appritiated, which will encourage us to reply you next time.

Rgds
YMP