• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

log file permission

I am using Solaris 2.5 w/s. How can I change the permission
of system log_file ( /var/log/syslog ) ?
0
deeptish
Asked:
deeptish
  • 2
  • 2
1 Solution
 
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
 
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
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now