log file permission

Posted on 1998-12-30
Last Modified: 2013-12-16
I am using Solaris 2.5 w/s. How can I change the permission
of system log_file ( /var/log/syslog ) ?
Question by:deeptish
  • 2
  • 2
LVL 84

Expert Comment

ID: 1812605

Author Comment

ID: 1812606
I don't like to use "chmod" because when server starts it again set the permision of it to default.  

Accepted Solution

arthurd earned 50 total points
ID: 1812607
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.

Author Comment

ID: 1812608
Hi arthurd,

      In the file S10syslog.chmod "10" stands for what ?

Expert Comment

ID: 1812609
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,


Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hyper-threading config in Solaris 6 191
what is a good general partitioning scheme for RHEL? 23 144
OpenLDAP Proxy to Active Directy 6 457
spectrum scale snapshot  resotre/mount 1 32
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question