-   Linux - Security (
-   -   setting file permissions for file /var/log/Xorg.0.log (

mfb 07-07-2009 02:03 PM

setting file permissions for file /var/log/Xorg.0.log
hello all

i am trying to set the file permissions for the log files "/var/log/Xorg.0.log" and "/var/log/gdm/:0.log". These files seem to be created when a user logs into a whokstation (my guess so far). I am trying to comply with a security mandate that all log files in the directory /var/log are set to 0640. The two mentioned files always seem to have the permissions 0644, does anyone know where and when these filea are created and how I might set the permissions when the files are created

much thanks

bsdunix 07-07-2009 02:41 PM

I'm not sure about the gdm log file, but the Xorg log file is created when the the X server starts, see lsof for some COMMAND and USER hints when X is running.


# lsof /var/log/Xorg.0.log
It appears that the permissions are based on what the umask is set to for the user.

All times are GMT -5. The time now is 09:26 PM.