File Perms not inherited by new log file ?

1 message Options
Embed this post
Permalink
Richard S

File Perms not inherited by new log file ?

Reply Threaded More More options
Print post
Permalink
Hi - I'm using NLog on an ASP.NET application so that every day the log files rollover.

I initially granted the log file certain permissions but I find that when the logs roll the newly created log does not take on the permissions of the file used the previous day - is there some way this can be done ?

To illustrate on Day 1 I have :

DiagLog.txt (and it has 'change' granted to Network Service)

On Day 2 I have :

DiagLog_0001.txt (the old file, still has 'change' granted to Network Service)
DiagLog.txt (doesn't have any rights for Network Service)