Operating System - HP-UX
1831995 Members
3041 Online
110034 Solutions
New Discussion

minumum time between password resets

 
generic_1
Respected Contributor

minumum time between password resets

I have a system that is giving me an error pertaining to the minumum time between password changes on a system. I was wondering if there is a file specifies teh location of the /etc/default/securetty and if it can be moved to a new location. Also, what options can I use to change this if this was set using modprpw, and what field would I want to check on its current settings with getprpw. Many Thanks
5 REPLIES 5
Dave Olker
Neighborhood Moderator

Re: minumum time between password resets

Hi Jeff,

I'm not sure what you mean by a file that specifies where the securetty file is. Do you mean which file references the securetty file?

As far as the time between password changes, you can view the current time via the getprpw command and change them using the modprpw command.

You should be able to view the current "min time between passwd changes" field via the command:

# getprpw -m mintm

and modify it via the command:

# modprpw -m mintm=

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Dave Olker
Neighborhood Moderator

Re: minumum time between password resets

By the way, did you mean /etc/default/security as opposed to /etc/default/securetty?

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Dave Olker
Neighborhood Moderator

Re: minumum time between password resets

If your question was whether there was a way to change the location of the /etc/default/security file, the answer is "no".

This file path is hard-coded into the function open_secdef(), which is called by commands like login, passwd, etc. There is no way to override this file path, although you could probably create a symbolically linked file at this location if you really wanted to move it somewhere else. But as far as pointing login and passwd to a file other than /etc/default/security for their definitions, there is no way to do that.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Steven E. Protter
Exalted Contributor

Re: minumum time between password resets

1) Can not move the file
2) You can as root manipulate the contents to set the minimum time between password changes to any number you want.

/etc/default/security


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

Re: minumum time between password resets

We cannot (not good) to move default security file to another place. And by the by it is security not securetty. securetty is used to give restriction on user login terminal types. (/etc/securetty)

You can get the details of passwd expiration information as,

getprpw -m username
variables are,

exptm password expiration time
lftm password lifetime
acctexp account expiration time
expwarn password expiration warning time

You can get the details with that,

To change use the same format with modprpw -m value username

You can know more informations about variables over prpwd.4 man page

Regards
Muthu
Easy to suggest when don't know about the problem!