sudo: lsof: command not found - Exit status: 1

RajeshGummadoju
Tera Contributor

Hi All,

Missing port information like listening on, connecting to on Linux Servers and getting Error: "sudo: lsof: command not found - Exit status: 1"

We have checked the sudo file contains the lsof permission.

Any help would be much appreciated.

Best Regards,

RajeSh

1 ACCEPTED SOLUTION

Gary Zawilinski
Mega Contributor

Hi Rajesh,

We had hundreds of these errors when we did our first discoveries. We found that lsof was actually not installed. The application teams that configured the servers had stripped all non-required programs including lsof. Check to see if it is actually installed or re-install it with:  ssh <host>  -n 'sudo yum -y install lsof'

Not having lsof installed will stop a discovery process cold.

View solution in original post

4 REPLIES 4

Ashutosh Munot1
Kilo Patron
Kilo Patron

RajeshGummadoju
Tera Contributor

Hi Ashutosh,

Thanks for your reply,

I have checked that must_sudo=true.

Best Regards,

Rajesh

Gary Zawilinski
Mega Contributor

Hi Rajesh,

We had hundreds of these errors when we did our first discoveries. We found that lsof was actually not installed. The application teams that configured the servers had stripped all non-required programs including lsof. Check to see if it is actually installed or re-install it with:  ssh <host>  -n 'sudo yum -y install lsof'

Not having lsof installed will stop a discovery process cold.

suryanarayana_p
Giga Contributor