Is there a way to run any command on nmap without having to be the root user?
many times I get the message, for example: "TCP/IP fingerprinting requires root privileges!"
Any configuration that can be changed to correct this?
You could use sudo.
Here's the thing:
I'm learning to use pentest apps, and one of them is written in java and uses nmap to function.
The correct approach would be to not launch the whole java app as root, but just, somehow, make nmap permit to to be executed full-featured by non-root users: Using sudo su and running the app as root makes java go nuts, complaining about X:
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
What could the solution be?
It seems that you are looking at two problems:
1. root does not have access to the graphics display and
2. you need to use sudo to run the app (as was posted priviously)
To fix the access to the display use (as your user) xhost + localhost 0.0
That should do it.