Syslog log file permission not getting modified.


 
Thread Tools Search this Thread
Operating Systems AIX Syslog log file permission not getting modified.
# 1  
Old 05-30-2012
Syslog log file permission not getting modified.

I'm trying to set the permission for the syslog log file in syslog,conf.
---------
The below is my configuration file

Code:
## example:
# "mail messages, at debug or higher, go to Log file. File must exist."
# "all facilities, at debug and higher, go to console"
# "all facilities, at crit or higher, go to all users"
#mail.debug             /var/spool/mqueue/syslog
#  *.debug              /dev/console
#  *.crit                       *
#  *.debug              /tmp/syslog.out     rotate size 100k files 4
#  *.crit               /tmp/syslog.out     rotate time 1d
*.crit                  *
# HACMP/ES for AIX Critical Messages
local0.crit /dev/console
# HACMP/ES for AIX Informational Messages
#local0.info /usr/es/adm/cluster.log
# HACMP/ES for AIX Messages from Cluster Scripts
#user.notice /usr/es/adm/cluster.log
# HACMP/ES for AIX Messages from Cluster Daemons
daemon.notice /syslogs/cluster.log
# HACMP for AIX Critical Messages from HACMP for AIX
local0.crit /dev/console
user.debug;*.emerg;*.alert;*.crit;*.err;*.warning;*.notice;*.info;*.debug /syslogs/syslog.log rotate size 200k files 3 perm 775
# HACMP for AIX Informational Messages
local0.info /syslogs/cluster.log
# HACMP for AIX Messages from Cluster Scripts
user.notice /syslogs/cluster.log

-----------------------
Code:
OS : 5200-08-CSP

Current log file permission
----------
Code:
-rw-------   1 root     sys          200031 May 31 06:02 syslog.log.2
-rw-------   1 root     sys          200126 May 31 08:08 syslog.log.1
-rw-------   1 root     sys          200141 May 31 10:13 syslog.log.0
-rwxrwxrwx   1 root     sys        31042263 May 31 10:32 cluster.log
-rw-------   1 root     sys           31310 May 31 10:32 syslog.log

-------------
I tried for /syslogs/syslog.log file. After i modified the perm value inc configuration file restarted syslogd service also. But still the file permission is not getting reflected.

Any one can help me to fix this.

Moderator's Comments:
Mod Comment Please use code tags, thanks.

Last edited by zaxxon; 06-01-2012 at 03:40 PM.. Reason: code tags
# 2  
Old 06-01-2012
From the AIX 6.1 documentation, available here online:

Code:
[perm [mode]] is:

If destination is a regular file, and the word perm is specified it means that rotated files is
having the permission specified by mode.

At the same page there is even an example:

Code:
*.debug              /tmp/syslog.out      rotate size 100k files 4 perm 444

There is an old admin proverb: if everything else fails, read the manual.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Get out of only Modified and Added files in svn log

How to get only modified and added files with revision,author and comments from svn log verbose ------------------------------------------------------------------------ r7351 | user01 | 2013-07-02 17:53:28 -0400 (Tue, 02 Jul 2013) | 2 lines Changed paths: D /trunk/demo/proj1/.project ... (1 Reply)
Discussion started by: iaav
1 Replies

2. Shell Programming and Scripting

Script to check for the file existence, if file exists it should echo the no of modified days

Hi, I am looking for a shell script with the following. 1. It should check whether a particular file exists in a location #!/bin/sh if ; then echo "xxx.txt File Exists" else echo "File Not Found" fi 2. If file exists, it should check for the modified date and run a command... (2 Replies)
Discussion started by: karthikeyan_mac
2 Replies

3. Emergency UNIX and Linux Support

/var/log/wtmp SuSE log permission rollback

Hello All, On my SuSE system, I have wtmp log this log file permission is 644 but every reboot the file permission rollback to 664. In the logrotate.conf and logrotate.d/wtmp files the wtmp logrotate set to 644. I would like to know, which "file" or "script" modify the wtmp log to rollback to... (7 Replies)
Discussion started by: kalaso
7 Replies

4. Shell Programming and Scripting

Tailing last modified part of log file

I have a log file which contains data like this This log file is updated twice a day at 7am and 6pm, I want a script(which i will make run at 7:10am and 6:10pm) which should fetch only the last appended lines since last update.. I mean.. if i execute the script at 7.10am 3/3/2010 it... (4 Replies)
Discussion started by: user__user3110
4 Replies

5. Shell Programming and Scripting

How to get a filename modified by attaching modified timestamp

Hi, I want to modify a filename in AIX by attaching the last modified timestamp. I want the timestamp completely in numerical format (eg:200905081210. yr-2009, mnth - 05, date -08, hr - 12, mins - 10). For example if the filename is a.log and it was modified on April 6th 2008 at 21.00. I... (16 Replies)
Discussion started by: Ruks
16 Replies

6. AIX

syslog file permission

Hi, I have setup syslog.conf to rotate and compress a messages file but the only problem is when it creates the new log file it creates it with the following permissions -rw-r-----. I just wondered if there is anywhere where i can specify what permissions this new log file is created with so I... (4 Replies)
Discussion started by: elmesy
4 Replies

7. HP-UX

How to Redirect the error messages from Syslog file to our own Application Log File

Hello, I am New to Unix. I am Using HP-UX 9000 Series for my Application. I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C. I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies

8. UNIX for Dummies Questions & Answers

how to retrieve original contents of a modified file (modified using vi)

Made changes to a file using vi editor and saved those changes now realised that the changes are not required How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
3 Replies

9. UNIX for Advanced & Expert Users

Log file - permission

Dear all I have installed Openwebmail 1.64 on Mandrake Linux 8.2. This application creates a log file at /var/log with the name openwebmail.log. The application needs that the permission of this log file should be as follows: owner - root group - mail mode - 660 Even though i set the... (6 Replies)
Discussion started by: ajkiruba
6 Replies
Login or Register to Ask a Question