ClamAV: Can't access file

Learner

Verified User
Joined
Jul 13, 2023
Messages
38
clamscan -r -i /steun
/steun: No such file or directory
WARNING: /steun: Can't access file

----------- SCAN SUMMARY -----------
Known viruses: 8707440
Engine version: 0.103.11
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 31.479 sec (0 m 31 s)
Start Date: 2024:04:23 20:49:40
End Date: 2024:04:23 20:50:11

I have no clue on what to do, I am root so why would I have 0 acces!?
 
Hello,

You will probably run it as:

Code:
cd /home && clamscan -r -i ./steun

or

Code:
clamscan -r -i /home/steun
 
Yeah don't get have like 5GB but with free -m it gives like 1.5 free...
 
I don't have an idea on why the process is killed. You might check the server logs for more details, you might find clues there. Server log names might differ depending on what OS you use: Debian/Ubuntu or CentOS like.
 
I don't have an idea on why the process is killed. You might check the server logs for more details, you might find clues there. Server log names might differ depending on what OS you use: Debian/Ubuntu or CentOS like.
Thank you.

I am using CentOs 7, how would I check the logs !? And if for what I have to look for ? :)
 
Ah thank you @Richard G that one says, if I tail:

Apr 23 23:58:58 mijnvps kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=79.124.62.130 DST=62.221.254.64 LEN=40 TOS=0x00 PREC=0x00 TTL=248 ID=39777 PROTO=TCP SPT=54489 DPT=56470 WINDOW=1024 RES=0x00 SYN URGP=0
Apr 23 23:59:01 hosting : Started Session 559 of user root.
Apr 23 23:59:02 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=193.29.13.152 DST=62.221.254.64 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=50441 PROTO=TCP SPT=53466 DPT=58739 WINDOW=1024 RES=0x00 SYN URGP=0
Apr 23 23:59:03 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=193.29.13.152 DST=62.221.254.64 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=44401 PROTO=TCP SPT=53466 DPT=48531 WINDOW=1024 RES=0x00 SYN URGP=0
Apr 23 23:59:05 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=193.29.13.152 DST=62.221.254.64 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=53072 PROTO=TCP SPT=53466 DPT=2345 WINDOW=1024 RES=0x00 SYN URGP=0
Apr 23 23:59:08 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=91.148.190.146 DST=62.221.254.64 LEN=44 TOS=0x00 PREC=0x00 TTL=249 ID=53785 PROTO=TCP SPT=49496 DPT=63848 WINDOW=1025 RES=0x00 SYN URGP=0
Apr 23 23:59:08 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=198.235.24.200 DST=62.221.254.64 LEN=44 TOS=0x00 PREC=0x00 TTL=250 ID=54321 PROTO=TCP SPT=52924 DPT=9000 WINDOW=65535 RES=0x00 SYN URGP=0
Apr 23 23:59:08 hosting dataskq[7470]: executing task task=action=ssl&value=admin_ssl
Apr 23 23:59:08 hosting dataskq[7470]: finished task duration=68.287472ms task=action=ssl&value=admin_ssl
Apr 23 23:59:15 hosting kernel: Firewall: *TCP_IN Blocked* IN=eth0 OUT= MAC=1e:00:59:00:0b:b1:02:06:cc:13:7f:af:08:00 SRC=193.29.13.152 DST=62.221.254.64 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=41781 PROTO=TCP SPT=53466 DPT=11573 WINDOW=1024 RES=0x00 SYN URGP=0

But nothing about clam...
 
Indeed.
But you say you have used:
"clamscan -r -i /home/steun/public_html"

However, that public_html is a symlink, maybe that is causing issues, should not, but one never knows. Try like this.
clamscan -r -i /home/steun/domains/domain.nl/public/html
ofcourse change domain.nl with your correct domain name.

See what happens.

free -m it gives like 1.5 free...
And how about swap space?
 
Indeed.
But you say you have used:
"clamscan -r -i /home/steun/public_html"

However, that public_html is a symlink, maybe that is causing issues, should not, but one never knows. Try like this.
clamscan -r -i /home/steun/domains/domain.nl/public/html
ofcourse change domain.nl with your correct domain name.

See what happens.


And how about swap space?
Going to that now... but uhm swap space is 0...

clamscan -r -i home/steun/domains/xxx.nl/public_html
home/steun/domains/xxx.nl/public_html: No such file or directory
WARNING: home/steun/domains/xxx.nl/public_html: Can't access file

----------- SCAN SUMMARY -----------
Known viruses: 8707440
Engine version: 0.103.11
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 23.807 sec (0 m 23 s)
Start Date: 2024:04:24 00:18:01
 
Last edited:
but uhm swap space is 0...
Well.... start creating some swap space. Best is 2 GB minimal, but I have seen VPS systems with 1 GB swap. But you really need swap space otherwise you will run into trouble at a certain point. Even our system with 64 GB ram has swap space which is used, even when there is still free RAM available.
 
Well.... start creating some swap space. Best is 2 GB minimal, but I have seen VPS systems with 1 GB swap. But you really need swap space otherwise you will run into trouble at a certain point. Even our system with 64 GB ram has swap space which is used, even when there is still free RAM available.
Great, how I do that ?
 
Well... that depends. Your VPS provider should in fact be able to do that for you.
It depends a bit on how the VPS is setup and what the contents of the /etc/fstab file are.

I could give you some instructions, but I don't want things to go sideways, so it might be best to first ask your VPS provider if he can create a 2 GB swap space for you, of if you can do it yourself and adjust the /etc/fstab file for it to work.

Because some VPS providers re-write the /etc/fstab file every time if I'm correct, and then it would be no use.
 
Well... that depends. Your VPS provider should in fact be able to do that for you.
It depends a bit on how the VPS is setup and what the contents of the /etc/fstab file are.

I could give you some instructions, but I don't want things to go sideways, so it might be best to first ask your VPS provider if he can create a 2 GB swap space for you, of if you can do it yourself and adjusting the /etc/fstab file.
No support.
 
Back
Top