LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   setting file permissions for file /var/log/Xorg.0.log (http://www.linuxquestions.org/questions/linux-security-4/setting-file-permissions-for-file-var-log-xorg-0-log-738379/)

mfb 07-07-2009 01: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 01: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.

Code:

# 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 07:04 PM.