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 can set other to read rather than just doing a chmod?

Thanks,

Matt

you can set suid bit for this file.

chmod 4640

Does it just preserve the permissions of the file being rotated?

I've looked at a few /var/log directories in which the permissions were different between machines, but the rotated files all kept permissions.

This is on AIX 5.3.

Yes just the file being rotated, I just need it to be read to other when it's rotated. But i'm not sure where this can be setup as it's done by root under syslog. Not sure I want to change the umask of root

Ignore my previous post. I've just tried it on AIX 5.3 and it doesn't preserve the permissions of the original file. (Original file is now test-logfile.3 below.)

-rw-r--r-- 1 root system 112783 06 May 14:39 test-logfile
-rw-r--r-- 1 root system 318051 06 May 14:07 test-logfile.0
-rw-r--r-- 1 root system 163997 06 May 12:36 test-logfile.1
-rw-r--r-- 1 root system 163884 06 May 11:36 test-logfile.2
-rw----r-- 1 root system 169015 06 May 10:36 test-logfile.3

Used:
*.debug /var/log/test-logfile rotate files 6 time 1h