Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting /var/adm/messages permission 1

Status
Not open for further replies.

cjoaquincruz

Programmer
Mar 24, 2004
1
US
I am trying to "harden" a Solaris 8 node. One of the guidelines is to chmod 600 the /var/adm/messages file (see the Solaris Security Guide -- sabernet.home.comcast.net/papers/Solaris.html). The problem is that Solaris by default creates this file with 644 permitions. Even if you change it, the system will eventually move the file to messages.0 and create a new messages file with 644 permissions. Is there a way to change this so that syslogd or whatever process is doing this will create a messages file with 600 permissions? I can find nothing on the web on this. Thanks in advance,
Joaquin
 
Write a script in rc1.d to change to desired permissions.
 
The log cycling and permissions setting is in /usr/lib/newsyslog script, just change it as desired.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top