Problem scenario
You are using nmap. You try the exact same command with sudo and without sudo. Why are these commands providing different results?
Here are examples of running the exact same command, once with “sudo” and once without:
jdoe@ciserver:~$ sudo nmap -p 9090 192.168.2.25
Starting Nmap 7.80 ( https://nmap.org ) at 2022-01-05 09:56 EST
Nmap scan report for 192.168.2.25
Host is up (0.00056s latency).
PORT STATE SERVICE
9090/tcp closed zeus-admin
MAC Address: 08:00:27:32:27:2C (Oracle VirtualBox virtual NIC)
Nmap done: 1 IP address (1 host up) scanned in 0.25 seconds
jdoe@ciserver:~$ nmap -p 9090 192.168.2.25
Starting Nmap 7.80 ( https://nmap.org ) at 2022-01-05 09:56 EST
Note: Host seems down. …
Continue reading “How Do You Troubleshoot Discrepant nmap Results Based on The sudo Command?”