BillyS

Well-Known Member
Mar 22, 2013
62
4
58
cPanel Access Level
Root Administrator
We upgraded from 11.36.1.8 to 11.38.0.15 yesterday. Last night, we received the following message:

Cron <[email protected]​> /usr/local​/lp/apps/s​ecurity/cr​onwrapper.​sh

sh: lsof: command not found

Is this expected as part of the upgrade?

Bill
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
I wouldn't think the upgrade would remove lsof (at least it didn't in any case I've seen). Is the lsof rpm currently installed on your system? / does /var/log/yum.log show it as being removed via yum itself?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Can you confirm if the "lsof" command is working properly when you use it manually while logged in as "root"? If so, could you check the script and see if it's entering the shell as another user?

Thank you.
 

BillyS

Well-Known Member
Mar 22, 2013
62
4
58
cPanel Access Level
Root Administrator
I got lazy on this one, couldn't find a reference to this problem anywhere... Contacted my host and they posted this as the fix:

There was a line that needed to be modified inside of /usr/local/lp/apps/security/infected.pl
They came back with this pretty quickly, almost like they know about the problem... any insights as to why this worked?

Bill
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
They came back with this pretty quickly, almost like they know about the problem... any insights as to why this worked?
It depends on what line they modified to resolve the issue. It's possible that third-party application released an update to work with newer versions of cPanel.

Thank you.