Solved

log file permission

Posted on 1998-12-30
5
215 Views
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 ) ?
0
Comment
Question by:deeptish
  • 2
  • 2
5 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1812605
chmod
0
 

Author Comment

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

Accepted Solution

by:
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.
0
 

Author Comment

by:deeptish
ID: 1812608
Hi arthurd,

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

Expert Comment

by:arthurd
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,

Dave
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now