syslog file permission


 
Thread Tools Search this Thread
Operating Systems AIX syslog file permission
# 1  
Old 04-28-2009
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
# 2  
Old 04-29-2009
you can set suid bit for this file.

chmod 4640
# 3  
Old 05-01-2009
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.
# 4  
Old 05-05-2009
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
# 5  
Old 05-07-2009
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

File permission

Hi, Could you please tell me the OS command to grant as similar to below permission? rwxrwxr-x OS -- HP-UX Regards, Maddy (8 Replies)
Discussion started by: Maddy123
8 Replies

2. AIX

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 ## 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... (1 Reply)
Discussion started by: novaothers
1 Replies

3. Shell Programming and Scripting

File permission

I have an application with the user mark and another user james is trying to run the application and ending up with file permission issues. The user mark has set the umask as 002, I wanted to have a setting so that anyone can run the application without any file permission issues. Can anyone... (2 Replies)
Discussion started by: Muthuraj K
2 Replies

4. Shell Programming and Scripting

file permission

Hi All, https://www.unix.com/unix-advanced-expert-users/105758-chmod-parent-sub-directories.html I have to change permission for the directories and subdirectories in single command when googled i found some updates but i understand what is switch. If there is a command please... (2 Replies)
Discussion started by: thelakbe
2 Replies

5. Solaris

file permission

hi frnds can u explain /etc/shadow file have read and write permissions for root only but while normal user changes his passwd it also updated in that file whats the logic behind that. (2 Replies)
Discussion started by: sravan ega
2 Replies

6. UNIX for Dummies Questions & Answers

permission on file

i have two user named sourav and jishu. i have created a file named source.txt in sourav. i made another user called shovon. i want to give read write permission of souce.txt for shovon but not for jishu. how can i set permission only for jishu ? (1 Reply)
Discussion started by: sourav_ray
1 Replies

7. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies

8. Solaris

File permission

Hi Folks I have a file with the following permission. -r-sr-lr-- 1 apps appsgp 7612 Dec 19 2001 startup Any idea what is the in the group means? In my mind I believe I need to be root to set l in the group. Am I right? I don't have root access now. When I (as apps) a chmod... (2 Replies)
Discussion started by: hlee411
2 Replies

9. UNIX for Dummies Questions & Answers

File permission

Hi, I have one question. My home directory of my unix account is open for everyone. If other account copy my files to their directory, is there a way that I can find out who did it. Does the system administrator have some kind of events logs to find out? Thank you so much! (3 Replies)
Discussion started by: cleanice
3 Replies

10. UNIX for Dummies Questions & Answers

The file permission

I have a file ( /tmp/file.txt ) , the file owner is user1:edp , the permission is 644 , I want everyone can overwrite the file but don't change the file owner and permssion , could suggest what can I do ? thx (2 Replies)
Discussion started by: ust
2 Replies
Login or Register to Ask a Question