Centos Error Problem With Internal Logger Update Logfile = /var/log/clamav/freshclam.log
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] freshclam not updating due to permission issue Having an Issue With Posting ? Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Page 1 of 2 12 Last Jump to page: Results 1 to 10 of 13 Thread: freshclam not updating due to permission issue Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode April 2nd, 2012 #1 antiartist View Profile View Forum Posts Private Message 5 Cups of Ubuntu Join Date Feb 2011 Location Calgary, Canada Beans 36 DistroUbuntu 14.04 Trusty Tahr freshclam not updating due to permission issue freshclam doesn't want to update the signature database due to a permissions problem with the logfile: Code: ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger (UpdateLogFile = /var/log/freshclam.log). The permissions for the freshclam.log file are wide open: Code: tom@HouseMedia:~$ ls -al /var/log/ -rwxrwxrwx 1 clamav clamav 0 2012-03-17 01:36 freshclam.log And although this shouldn't be a problem, I check the parent folder as well: Code: tom@HouseMedia:~$ ls -ld /var/log/ drwxr-xr-x 18 root root 4096 2012-04-01 06:48 /var/log/ Help? Adv Reply April 2nd, 2012 #2 Bucky Ball View Profile View Forum Posts Private Message Blending & bending with 'buntu Join Date Feb 2008 Location Funky Town, AUS BeansHidden! DistroXubuntu Re: freshclam not updating due to permission issue What release are you using? Effective posting, WirelessInfo Script, Using [code] tags, Boot Repair* Please search for 'Ubuntu
to log file with selinux enforcing enabled (SOLVED) Support for security such as Firewalls and securing linux Post Reply Print view Search Advanced search 3 posts • Page 1 of 1 __3pm__ Posts: 4 Joined: 2007/12/18 08:03:09 clamd cannot write to log file with selinux enforcing enable Quote Postby __3pm__ » 2008/05/16 07:32:07 Hello!I set up email server with amavisd and clamd, as described http://wiki.centos.org/HowTos/Amavisd.The only problem is that it cannot start clamd while selinux is set enforcing mode.When I turn off https://ubuntuforums.org/showthread.php?t=1951146 selinux, everything works, but what I apparently do not want for a production server.Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).I have log facility "LogSyslog yes" in my clamd.conf.Clamd runs as clamav user.These are permissions:drwxr-xr-x clamav clamav system_u:object_r:clamd_var_log_t .drwxr-xr-x root root system_u:object_r:var_log_t ..-rw-r----- clamav clamav system_u:object_r:var_log_t clamd.log-rw-r--r-- clamav clamav system_u:object_r:freshclam_var_log_t freshclam.logI am not strong http://www.centos.org/forums/viewtopic.php?t=30402 in selinux, tried "touch .autorelabel" and reboot, but it did not fix an issue.Any help? Top __3pm__ Posts: 4 Joined: 2007/12/18 08:03:09 Re: clamd cannot write to log file with selinux enforcing enabled Quote Postby __3pm__ » 2008/05/16 08:01:31 Resolved by myself.Decription:cat /etc/selinux/targeted/contexts/files/file_contexts | grep clamnotice this entry:/var/log/clamav/clamav.* -- system_u:object_r:clamd_var_log_t:s0Changed in /etc/clamd.conf:LogFile /var/log/clamav/clamd.log to LogFile /var/log/clamav/clamav.logThen:cd /var/log/clamavtouch clamav.logchown clamav:clamav clamav.logThen as described here elswhere in forum: semanage fcontext -a -t clamd_var_lib_t "/var/clamav(/.*)?" restorecon -R /var/clamavservice clamd startHope it saves someone a couple of hours. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Post Reply Print view 3 posts • Page 1 of 1 Return to “CentOS 5 - Security Support” Jump to CentOS General Purpose CentOS - FAQ & Readme First Announcements CentOS Social User Comments Website Problems CentOS 7 CentOS 7 - General Support CentOS 7 - Software Support CentOS 7 - Hardware Support CentOS 7 - Networking Support CentOS 7 - Sec
Common F23 Bugs Common F24 Bugs Communicate with Fedora The Documents Bug Reports Fedora Update System (Bodhi) Fedora http://forums.fedoraforum.org/showthread.php?t=154110 Build System (Koji) Official Spins FedoraForum.org > Fedora 23/24 > Installation, Upgrades and Live Media freshclam won't update because of logfile FedoraForum Search User Name https://forums.freebsd.org/threads/6163/ Remember Me? Password Forgot Password? Join Us! Register All Albums FAQ Today's Posts Search Installation, Upgrades and Live Media Help with Installation, FedUp & Live Media (Live centos error CD, USB, DVD) problems. Google™ Search FedoraForum Search Red Hat Bugzilla Search Search Forums Show Threads Show Posts Tag Search Advanced Search Go to Page... Thread Tools Search this Thread Display Modes #1 30th April 2007, 10:37 AM marcussmit Offline Registered User Join Date: Apr 2007 Posts: 4 freshclam centos error problem won't update because of logfile Hi all! Please help me with this problem? Freshclam won't update the virusdefinitions because it thinks that is cannot append. Code: [root@mailserver ~]# freshclam ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!). ERROR: Problem with internal logger. strace says: Code: munmap(0xb7f38000, 4096) = 0 setgroups32(1, [103]) = 0 setgid32(103) = 0 setuid32(102) = 0 umask(037) = 022 open("/var/log/freshclam.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied) umask(022) = 037 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f38000 write(1, "ERROR: Can\'t open /var/log/fresh"..., 78ERROR: Can't open /var/log/freshclam.log in append mode (check permissions!). uid102 = clamav and gid103 = clamav, filepermissions are: Code: [root@mailserver ~]# ls -l /var/log/freshclam.log -rwxr--r-- 1 clamav clamav 0 apr 30 10:51 /var/log/freshclam.log What more can i try to get this working? Thanks for any response, Marcus marcussmit View Public Profile Find all posts by marcussmit #2 13th June 2007, 09:13 AM pascald Offline Registe
Primer All Books and Articles Community Mailing Lists Forums User Groups Events Q&A (external) Developers Project Ideas SVN Repository Perforce Repository Support Vendors Security Information Bug Reports Submit Bug-report Foundation Monetary Donations Hardware Donations Log in or Sign up The FreeBSD Forums Forums > Base System > Installing and Upgrading FreeBSD > This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More. ClamAV permission problem Discussion in 'Installing and Upgrading FreeBSD' started by anthony911, Aug 10, 2009. anthony911 Member Messages: 47 Thanks Received: 0 Hey guys whats up! So I decided the upgrade from 6.1 to 7.2 was giving me too much of a hard time so I decided to start everything from scratch. So far I have not had any problems with the installation I did however do something that I know I should not have done. I issued this command Code:#chown –R vscan:vscan /var/db/clamav #chown –R vscan:vscan /var/log/clamav #chown –R vscan:vscan /var/run/clamav and now I get an error saying Code:Starting clamav_clamd ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!). ERROR: Cant initialize internal logger Starting clamav_freshclam ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!). ERROR: Probem with Internal logger (UpdateLogFile = /var/log/clamav/freshclam.log) Waiting for clamd socket....60...50...40...30...20...10... and then it fails I think I changed some kind of permission but I don't know how to put it back to normal. I issued these commands from this url Code:http://forums.freebsd.org/showthread.php?t=5919 Code:touch /var/log/clamd.log chown vscan:vscan /var/log/clamd.log Code:mkdir /var/log/clamav touch /var/log/clamav/clamd.log chown -R vscan:vscan /var/log/clamav but I still get the error how do I put it back to normal? anthony911, Aug 10, 2009 #1 robertclemens Member Messages: 39 Thanks Received: 9 It's fairly hard to guess what the problem is with the information presented not giving the whole picture. However, I would suggest that vscan may not be what clamav is running as. A lot of setups use different permissions: Code: -rw-r----- 1 clamav clamav 630K Aug 10 14:32 clamd.log -rw-r----- 1 clamav clamav 868K Aug 10 14:22 freshclam.log That is my /var/log/clamav directory. You need to verify the user/group you are running as.