Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-11-2003, 02:26 AM   #1
LQ Newbie
Registered: Mar 2003
Posts: 14

Rep: Reputation: 0
how to are logs written to?

Can someone explain to me or provide some documentation on how logs files are written to (mail logs, httpd logs, etc). I'm a little confused. If you try to change the permissions on a log file the default permissions will eventually comeback. Is the file being recreated or are the permissions being set manually? Is this a cron job or a process attached to log rotation? Thanks in advance.
Old 11-11-2003, 04:56 AM   #2
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
The log files are created by the syslogger. (syslogd) this program receives events, and sorts them into log files with help of /etc/syslog.conf After changing the syslog.conf, you need to reload the syslogger again. (...and not rebooting your entire machine for this )

Because log files can get very huge, a program called "logrotate" will be run periodically. It moves the files files to name.1, name.2, etc.. and eventually archives or deletes the logs. and yes, this program is ran from a cron job now and them. (which is a good thing)

but I have a question too; why do you want to change the permissions of the log files? they didn't kept them locked for normal users because it was a funny thing to do


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall logs in logs and terminal... robbow52 Debian 7 11-20-2004 08:13 PM
Firefox logs user out? Where are error logs? case1984 Linux - General 0 10-09-2004 03:22 PM
Squid is running but my logs are not being written Dagman Linux - Software 5 07-13-2004 09:12 AM
Separate firewall logs and general logs dominant Linux - General 3 04-20-2004 02:26 AM
Im running syslogd. I also have my PIX firewall logs being written to my linux syslog adamrau Linux - Security 2 12-19-2001 02:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration