1834156 Members
2675 Online
110064 Solutions
New Discussion

Re: Password query

 
BalaRV
Occasional Contributor

Password query

Users in the system is having 90 days of Max period of inactivity of account. I need to change the existing 90 days to 45 days. This is also needs to be set as dafault for the new users. Could you send me the command to change the inactivity to 45 days.
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Password query

Hi,
are you running trusted system ?

Please see "man usermod"
-f inactive Specifies the maximum number of days of continuous inactivity of the login before the login is declared invalid. Normal values are positive integers, while a value of -1 defeats this status.

Also see "man modprpw"

Or use SAM !


Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.

So far you have not awarded any points !
B.MariappaN
Advisor

Re: Password query

Hi,
Try this,
# usermod -f 45 username
and to make it default,edit /etc/default/security and change the value for INACTIVITY_MAXDAYS

Regards,
B.MariappaN
Reshma Malusare
Trusted Contributor

Re: Password query

Hi BalaRV,
For changing inactivity period from 90 days to 45 days then simple way is to use
usermod command:
usermod -f
To set as default,edit /etc/default file.

Balarv,as you mentioned subject here as password query.So,do you want to go for passswd ageing also? I mean do you want to force users to change their passwords after some defined period. If yes then use following command

Passwd -n -x -w
-n--> Min.days
-x-->Max days
-W --> for warning

you can see user's passwd status by :
passwd -s user1
passwd -sa
Reshma Malusare
Trusted Contributor

Re: Password query

Hi BalaRV,
Can you please assign points if your query is solved.

Thanks
Reshma