log file permission

I am using Solaris 2.5 w/s. How can I change the permission
of system log_file ( /var/log/syslog ) ?
deeptishAsked:
Who is Participating?
 
arthurdCommented:
Use chmod, then create a file in /etc/rc3.d/ called S10syslog.chmod (or whatever, as long as it starts with a "S" and has a number next).

In that file, put the chmod command.  Every time the system boots up, it will chmod the syslog file to whatever you set it to.
0
 
ozoCommented:
chmod
0
 
deeptishAuthor Commented:
I don't like to use "chmod" because when server starts it again set the permision of it to default.  
0
 
deeptishAuthor Commented:
Hi arthurd,

      In the file S10syslog.chmod "10" stands for what ?
0
 
arthurdCommented:
It is just a number to indicate the order in which the scripts in the directory are started.  If you had more than one script, you would put different numbers for each.  The smaller the number the ealier it will be executed.  The "S" indicated it is a startup script.  If it were a "K", it would be a kill script (shutdown).

Hope this helps,

Dave
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.