?
Solved

log file permission

Posted on 1998-12-30
5
Medium Priority
?
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

752 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