Operating System - HP-UX
1753511 Members
5311 Online
108795 Solutions
New Discussion юеВ

Re: where is the file "login.defs" available in HP-UX

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

where is the file "login.defs" available in HP-UX

Hi

In linux the file "/etc/login.defs" is used to set default "maximum password days, minimum password days, password min length, password warning age.

Ex: # vi /etc/login.defs

PASS-MAX-DAYS 99999
PASS-MIN-DAYS 0
PASS-WARN-AGE 7
PASS-MIN-LEN 5

like this, where we have to set this things in HP-UX.
11 REPLIES 11
Ganesan R
Honored Contributor

Re: where is the file "login.defs" available in HP-UX

Hi Senthilkumar,

In HP-UX the equivlant file is /etc/default/security.

See man security
Best wishes,

Ganesh.
Md. Farhan A Azam
Trusted Contributor

Re: where is the file "login.defs" available in HP-UX

Hi,

#vi /etc/default/security

First Convert the system to trusted mode.

SAM -> Auditing and Security -> Audited Events -> System will ask, Do you want to convert to a Trusted System now? ->OK

Then you can set these password and other policy through SAM and by editingthe file.

# Password controls - Trusted
###################

MIN_PASSWORD_LENGTH=8
PASSWORD_HISTORY_DEPTH=5
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=1
PASSWORD_MIN_DIGIT_CHARS=1
PASSWORD_MIN_SPECIAL_CHARS=1

# Non-Trusted or shadow password setup only:
# defaults: MAXDAYS=-1 MINDAYS=0 WARNDAYS=0

PASSWORD_MAXDAYS=45
PASSWORD_MINDAYS=1
PASSWORD_WARNDAYS=14

Thnx...Farhan

Jeeshan
Honored Contributor

Re: where is the file "login.defs" available in HP-UX

For other security features, do a man on security...

File is /etc/default/security.


You can restrict length and prevent repeat passwords and much more.
a warrior never quits
Sharma Sanjeev
Respected Contributor

Re: where is the file "login.defs" available in HP-UX

Hi Senthil

The location of file /etc/default/security

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
T G Manikandan
Honored Contributor

Re: where is the file "login.defs" available in HP-UX

There is no file /etc/login.defs , the file is /etc/default/security.

senthil_kumar_1
Super Advisor

Re: where is the file "login.defs" available in HP-UX

Hi

There is no file like "/etc/default/security" in my server.
T G Manikandan
Honored Contributor

Re: where is the file "login.defs" available in HP-UX

Is your server already in trusted mode?
YOu need to first convert your server to trusted mode.
Md. Farhan A Azam
Trusted Contributor
Solution

Re: where is the file "login.defs" available in HP-UX

Hi Senthil,

You can copy from other server if possible. As this file doesn't comes bydefault.

Thnx...Farhan
Sharma Sanjeev
Respected Contributor

Re: where is the file "login.defs" available in HP-UX

Hi Senthil

Is your system is trusted
Trusted systems will have this file.

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE