Hi all, I've been trying without any luck to have syslog-ng create dirs with 755 and files with 644 permissions. I've used the following line: destination d_devices { file("/var/log/devices/$HOST/$PRIORITY" perm(0644) create_dirs(yes) dir_perm(0755)); }; But they are created with the permissions from my umask (022). ie files are 600, not 644. Is this a known issue? Is there a workaround? Any ideas?? John Delisle Corporate Technology Ceridian Canada Ltd 204-975-5909 This e-mail and any files transmitted with it are considered confidential and are intended solely for the use of the individual or entity to whom they are addressed (intended). This communication is subject to agent/client privilege.If you are not the intended recipient (received in error) or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited.If you have received this e-mail in error please notify the sender immediately.
I had something similar happen. I wanted my dir perms to be -rw-r---- (640), and they would always be (644). I edited my /etc/rc.d/init.d/syslog-ng start up script (substitute your flavor of unixes start up script here) edit the umask in the startup script and you should be good to go. In my start up script 037 is my umask. I just included the following in my startup script umask 037 Hope that helps.
I've been trying without any luck to have syslog-ng create dirs with 755 and files with 644 permissions. I've used the following line:
Brian Seppanen Charter Communications Regional Data Center 906-228-4226 ext 23 Marquette, MI seppy@chartermi.net
participants (2)
-
Brian E. Seppanen
-
John_Delisle@ceridian.ca