From: Jason T. <jas...@ea...> - 2004-08-27 11:15:30
|
I have a perl daemon that runs as root and forks children that run as other users. Because it changes users I end up with permission problems using a file appenders. Even if I open the file permissions up manually, it seems that when the files rotate they default back to ( -rw-r--r-- ) and owned by whatever user caused the log switch/rollover. Is there a way to specify that permissions to the log files be wide open ( -rw-rw-rw- ) ? An alternate solution might be to have the logger dynamically create filenames with the current process' user name in the logs filename. The former method is preferred but the latter is fine also. I don't know how to implement either. Does anyone have any tips on how to accomplish either of these methods or is there a better way to overcome this issue? Thank you, Jason |