Operating System - HP-UX
1833827 Members
2335 Online
110063 Solutions
New Discussion

Re: Can not open /etc/default/security file

 
Khashru
Valued Contributor

Can not open /etc/default/security file

I am getting "Can not open /etc/default/security file " in the syslog. i know i need to create /etc/default/security file to resolve it. my question is when this entry is logged in in the syslog. Each time a user logs in or ? bec today 234 user loggenin to the system and i got this error arounf only 20 times.
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: Can not open /etc/default/security file

Hi Khashru:

Make sure that the file world-readable.

Make sure, too, that the '/etc/default' directory has world read+execute permissions too.

Regards!

...JRF...
Khashru
Valued Contributor

Re: Can not open /etc/default/security file

I hade done it and stopped logging the error in the syslog. My question is when the entry is logged in to the syslog or what even triggers the syslog entry. As i saw the user login number and the message number is not same.
James R. Ferguson
Acclaimed Contributor

Re: Can not open /etc/default/security file

Hi (again) Khashru:

The message would be generated by the 'login' process. I presume from this post and your other one that you just created the security file today.

If you created the file, but failed to make it world-readable for awhile, then during that period I would expect you to have logged "Can't open" messages for non-root users.

Regards!

...JRF...
Khashru
Valued Contributor

Re: Can not open /etc/default/security file

Actually i was having this messages in two system and i have solved with one system. On the second system i am trying to find out when this error is logged in. on one session i am monitoring syslog and on other session i logged on to the system as a normal user. but i did not get the entry in the syslog. Thats why i am trying to find out exectly what triggers this entry to the syslog.
Arunvijai_4
Honored Contributor

Re: Can not open /etc/default/security file

Hi Khashru,

what does ll /etc/default and /etc/default/security say ? User "bec" may not have read permission (in deed, the login process).

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Khashru
Valued Contributor

Re: Can not open /etc/default/security file

There is no problem with /etc/default/security.

My question is that when does the system writes an entry for that in the syslog. Is it when a user try to login or after a regular interval.
Muthukumar_5
Honored Contributor

Re: Can not open /etc/default/security file

It will come for every login. This configuration file will be processed as part of login process.

May be log file is trimmed to OLD file. see security man page for more.

This file must be world readable and root writable.

--
Muthu
Easy to suggest when don't know about the problem!
Khashru
Valued Contributor

Re: Can not open /etc/default/security file

But I am not getting with every login. I opened syslog in one terminal amd login from other termional. but i did not see the message in syslog.
LoC_1
Frequent Advisor

Re: Can not open /etc/default/security file

Khashru,
/etc/default/security is checked at login and su. It can also happen in a program when su is invoked
What is the exact/complete error that you are getting in syslog.
Louis
Khashru
Valued Contributor

Re: Can not open /etc/default/security file

I have resolved the error in syslog. But i was surprised that in last one month there is only 1001 entry for this where each day around 250 people log in to the system. My understanding is that there should be more log entry. Also i had tried to logon from other terminal while checking log from another terminal. I did not get any message in syslog. and it is before creating /etc/default/security file.