Operating System - HP-UX
1833996 Members
2384 Online
110063 Solutions
New Discussion

Re: /etc/default/security

 
SOLVED
Go to solution
Khashru
Valued Contributor

/etc/default/security

I donot have a /etc/default/security file. How can i create one.
13 REPLIES 13
James R. Ferguson
Acclaimed Contributor

Re: /etc/default/security

Hi Krashru:

As root, do:

# touch /etc/default/security
# chmod 644 /etc/default/security

See the manpages for more information.

http://www.docs.hp.com/en/B2355-60127/security.4.html

Regards!

...JRF...
Khashru
Valued Contributor

Re: /etc/default/security

I want to mean that is there any templete for the content of the file. From where i can get a default content that file.
RAC_1
Honored Contributor

Re: /etc/default/security

Check if you have template file in /usr/newconfig/etc dir.
Elseprepae one, by looking at man page of man 4 security
There is no substitute to HARDWORK
Khashru
Valued Contributor

Re: /etc/default/security

can i get a sample one.
James R. Ferguson
Acclaimed Contributor

Re: /etc/default/security

HI (again) Khashru:

You simply need to create the file and specify what *you* want in it according to the manpages I referenced.

The format is 'paramter=value' as noted there. Pay attention to the notes with each parameter cited in the manpages. Certain options require certain patches or bundles to be installed to work.

Regards!

...JRF...
Khashru
Valued Contributor

Re: /etc/default/security

I want to create the following rule

password 6 character and password history 1. I think the /etc/default/security file should contain the following

MIN_PASSWORD_LENGTH=6
PASSWORD_HISTORY_DEPTH=1

correct me if i am wrong.
RAC_1
Honored Contributor
Solution

Re: /etc/default/security

correct. go ahead.
There is no substitute to HARDWORK
Mustafa Gulercan
Respected Contributor

Re: /etc/default/security

here is my /etc/default/security file...

have a look attachment


mustafa
rariasn
Honored Contributor

Re: /etc/default/security

# touch /etc/default/security
# chmod 666 /etc/default/security

Sample "security" file:

MIN_PASSWORD_LENGTH=8
PASSWORD_MIN_UPPER_CASE_CHARS=1
PASSWORD_MIN_LOWER_CASE_CHARS=1
PASSWORD_MIN_DIGIT_CHARS=1
PASSWORD_MIN_SPECIAL_CHARS=1
PASSWORD_HISTORY_DEPTH=3
ABORT_LOGIN_ON_MISSING_HOMEDIR=1
SU_ROOT_GROUP=suroot

ran
Muthukumar_5
Honored Contributor

Re: /etc/default/security

Read security man page.

Create a file as,

# touch /etc/default/security
# chmod 644 /etc/default/security

Put the setting as like,

PASSWORD_HISTORY_DEPTH=3

# Comment to give comments. Normal configuration file as like /etc/hosts etc.

Keep the ownership and permission to give security.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: /etc/default/security

Hi Khashru,

It is always better to read man pages before doing any security related stuffs on your system.

# man security for more details.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Robert Fritz
Regular Advisor

Re: /etc/default/security

You may also consider using Bastille, which comes with 11.23 or can be downloaded from HP. It is an easy-to-use security wizard that will help create password policies on your system among other things.
Those Who Would Sacrifice Liberty for Security Deserve Neither." - Benjamin Franklin
Khashru
Valued Contributor

Re: /etc/default/security

I have user the following parameter

MIN_PASSWORD_LENGTH=6
PASSWORD_HISTORY_DEPTH=1