RHEL 5 /var/log created permissions
I'm looking for information about the creation permissions for files within /var/log.
One of the specifics is /var/log/gdm/ files. The created permissions of these log files is 0644. I am looking to set these files to 0600 or 0640. Another log file who's permissions I cannot find the source permissions is: /var/log/Xorg.0.log. Again, I'm looking to change it from 0644 to 0600 or 0640. I could create a script to update these files, but I would prefer to know the source of the file permissions and correct it there. Thank you for your time. |
@ Reply
Hi Passmossis,
Permissions are derived from /etc/bashrc. If you will run the following command: Code:
less /etc/bashrc Code:
# /usr/share/doc/setup-*/uidgid file So to answer your query I would say that creation permission derives from /etc/bashrc. |
Thanks for the reply. This is where I was looking as well.
I have the file configured as: Code:
# /usr/share/doc/setup-*/uidgid file I'm still left with the same results. Any other potential areas to look? |
@ Reply
If you will set 066 it will be suffice. Then it will automatically work as rw------- for files and rwx--x--x for directories. So you can change them to 066 if you want.
Changes will not work until you reboot your system. |
All times are GMT -5. The time now is 07:31 PM. |