Operating System - HP-UX
1751694 Members
5277 Online
108781 Solutions
New Discussion юеВ

Re: Overriding password ageing for an individual - StdModSecExt

 
RobinKing
Valued Contributor

Overriding password ageing for an individual - StdModSecExt

All

I've installed StdModSecExt, and have setup all the global settings I want in /etc/default/security. This includes PASSWORD_MAXDAYS=90. However I have a number of functional user accounts that I want to disable password ageing for.

/etc/security.dsc suggest I can't use userdbset to change the /var/adm/userdb for individuals.

# S : can configure a system-wide default in /etc/default/security
# u : can configure a per-user value in /var/adm/userdb
# s : can configure a per-user value in /etc/shadow if shadow mode
# p : can configure a per-user value in /etc/passwd if standard mode
# L : the attribute applies only to local users in /etc/passwd

PASSWORD_MAXDAYS;-1;441;-1;LpsS;Maximum number of days that a password is valid (-1=Disable aging)

How do I do this via the /etc/passwd file as it suggests? Is it actually possible to change this attribute for individual users?

Thanks...
3 REPLIES 3
RobinKing
Valued Contributor

Re: Overriding password ageing for an individual - StdModSecExt

Anyone?
Robert Fritz
Regular Advisor

Re: Overriding password ageing for an individual - StdModSecExt

Hi Robin,

These are the relevant entries that apply to your situation:
# s : can configure a per-user value in /etc/shadow if shadow mode
# p : can configure a per-user value in /etc/passwd if standard mode

So use passwd -w... as long as you're not in Trusted Mode.
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin
RobinKing
Valued Contributor

Re: Overriding password ageing for an individual - StdModSecExt

Thanks for the response Robert, but that'll just deal with the warngin message. I've tested with passwd -x -1 and that does what I need it to.

Robin