Permission denied to view exim log

psytanium

Well-Known Member
Jun 6, 2014
333
21
68
Lebanon
cPanel Access Level
Root Administrator
Hi,

I logged to the server WHM interface, and run /var/log/exim_mainlog in Terminal.
But I received : Bash: /var/log/exim_mainlog: Permission denied.

am i doing something wrong ?

Regards,
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,774
328
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
That's a log file, its not an executable, you can't run it like a program. You could use cat to dump all the contets of it (cat /var/log/exim_mainlog)
 
  • Like
Reactions: psytanium

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
Typically I'll use tail or grep to search through the exim_mainlog - when you do this or what @GOT suggested are you still receiving the same error?
 
  • Like
Reactions: psytanium

psytanium

Well-Known Member
Jun 6, 2014
333
21
68
Lebanon
cPanel Access Level
Root Administrator
I was afraid to use cat, i though dump mean delete or through away all exim content. Yes I'm good now, and learning how to search exim to spot spams. Still have a lot to learn. Thank you and hope im not posting questions out of topic of slightly breaking some rules.
 
  • Like
Reactions: cPanelLauren