[logback-user] Log file permissions

Ceki Gülcü ceki at qos.ch
Mon Mar 8 13:15:31 CET 2010



Logback does not do anything special with respect to file
permissions. It just opens a file (creates if not existent). Does
logback's behavior with respect file permissions differ from a file
created by "FileWriter fr = new FileWriter("x")" ?

Which operating system are you using?

On 08/03/2010 1:11 PM, Hontvári József wrote:
> I cannot discover why the log file created by logback has different
> permissions then another file created by the same Java process. I don't
> see anything special in Logback code, do I miss something? The log file
> is only readable by the user running the process.
>
> /var/lib/jddclient
> drwxr-s--- 2 jddclient adm 4096 2010-03-08 12:24 .
> drwxr-xr-x 58 root root 4096 2010-03-08 12:23 ..
> -rw-r--r-- 1 jddclient adm 103 2010-03-08 13:04 status.xml
>
> /var/log/jddclient
> drwxr-s--- 2 jddclient adm 4096 2010-03-08 12:24 .
> drwxr-xr-x 15 root root 4096 2010-03-08 12:25 ..
> -rw------- 1 jddclient adm 9811 2010-03-08 13:04 jddclient
>
>


More information about the Logback-user mailing list