Oi pra todos,
Estou precisando de uma ajuda....
Baixei e instalei o clamav antirus para o ubuntu server 11.04
fiz o seguinte procedimento:
Baixei e instalei o antivírus
root@servidor:~# apt-get install clamav
Apliquei o comando clamd e deu a mensagem:
root@servidor:~# clamd
O programa 'clamd' não está instalado no momento. Você pode instalá-lo digitando:
instalei o daemon:
apt-get install clamav-daemon
criei os diretórios:
root@servidor:~# mkdir /var/clamd
root@servidor:~# mkdir /var/clamav
root@servidor:~# mkdir -p /var/clamd/infectados
Acessi o arquivo clamd.conf:
root@servidor:~# vim /etc/clamav/clamd.conf
acessei para procurar por uma linha Exemple.
o arquivo original:
#Automatically Generated by clamav-base postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-base
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav
AllowSupplementaryGroups true
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog false
LogFacility LOG_LOCAL6
LogClean false
LogVerbose false
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav
SelfCheck 3600
Foreground false
Debug false
ScanPE true
ScanOLE2 true
ScanHTML true
DetectBrokenExecutables false
ExitOnOOM false
LeaveTemporaryFiles false
AlgorithmicDetection true
ScanELF true
IdleTimeout 30
PhishingSignatures true
PhishingScanURLs true
PhishingAlwaysBlockSSLMismatch false
PhishingAlwaysBlockCloak false
DetectPUA false
ScanPartialMessages false
HeuristicScanPrecedence false
StructuredDataDetection false
CommandReadTimeout 5
SendBufTimeout 200
MaxQueue 100
ExtendedDetectionInfo true
OLE2BlockMacros false
StreamMaxLength 25M
LogFile /var/log/clamav/clamav.log
LogTime true
LogFileUnlock false
LogFileMaxSize 0
Bytecode true
BytecodeSecurity TrustSigned
BytecodeTimeout 60000
OfficialDatabaseOnly false
CrossFilesystems true
Apliquei novamente o comando clamd:
root@servidor:~# clamd
Acusou essa mensagem:
ERROR: initgroups() failed.
Nesta literatura orienta a fazer o passo a passo, porém alguns comandos já aplicados em uma instalação anterior deu que o grupo já existe, o diretório já existe e assim por diante... Gostaria de saber se por acaso está faltando alguma coisa em relação a instalação ou configuração, pois já busquei diversas literaturas até mesmo em inglês e não vi até o momento uma solução que me ajudasse e poder colocar o antivírus para funcionar juntamente com o Samba.
Alguém pode me ajudar?
Obrigado.
bfbicalho
Veterano
Registrado
1.1K Mensagens
53 Curtidas