LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-08-2008, 06:06 AM   #1
pxumsgdxpcvjm
Member
 
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
Nmap Unusable


Recently I upgraded to Slackware 12.1. Other then a few minor problems, the install and setup went smoothly. I just installed Nmap for it tonight. Compiled from source since I wanted to use the latest version but for some reason I can't get it working in a unusable state. Here's the commands I'm using...
Code:
user@Computer:~$ nmap 192.168.1.2 -v

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-08 22:53 NZST
Initiating Ping Scan at 22:53
Scanning 192.168.1.2 [1 port]
Completed Ping Scan at 22:53, 2.01s elapsed (1 total hosts)
Read data files from: /usr/local/share/nmap
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 2.169 seconds
user@Computer:~$ nmap 192.168.1.2 -v -PN

Starting Nmap 4.65 ( http://nmap.org ) at 2008-06-08 22:53 NZST
Initiating Ping Scan at 22:53
Scanning 192.168.1.2 [0 ports]
Completed Ping Scan at 22:53, 0.00s elapsed (1 total hosts)
Read data files from: /usr/local/share/nmap
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 0.221 seconds
user@Computer:~$ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=128 time=1.38 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=128 time=1.72 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=128 time=1.17 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=128 time=1.15 ms

--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 1.151/1.358/1.724/0.232 ms
It's making no sense to me. I didn't have this problem at all with Slackware 12.0. Anyway, I tried again using the root account which worked. I figured that this was just some security layer or something added to Slackware 12.1 but to my surprise, I'm able to use Nmap to connect to all others computers on my network, just not 192.168.1.2 for some reason. Anyone know what could be the issue at hand here?

Thanks to any replies.
 
Old 06-08-2008, 07:22 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
I can't imagine that is a Slackware-specific issue, but rather some sort of a bug. Have you tried building an older version and seeing if the problem persists there as well?

I would also suggest you use the official Slackbuild for nmap which will let you build from source to an installable Slackware package. Even if it doesn't clear up the issue you are having specifically, at the very least it will make building and testing new versions easier.
 
Old 06-08-2008, 07:53 AM   #3
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,439

Rep: Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851Reputation: 851
As nmap manipulates the privileged ports (1-1024) it requires root privileges. You will need to run nmap as root.

From man nmap:
Quote:
On Unix boxes, only the privileged user root is generally able to send and receive raw TCP packets. For unprivileged users, a workaround is automatically employed whereby the connect() system call is initiated against each target port.
 
  


Reply

Tags
nmap


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
LXer: Learn how to use nmap, and nmap GUI, a great port scan tool LXer Syndicated Linux News 0 01-03-2008 09:10 AM
nmap increase send delay for nmap 4.20 matters Slackware 1 10-01-2007 11:37 PM
CPAN 'getting' UNusable Makefiles Ju Deddo Koinu Linux - Software 2 07-10-2003 06:10 PM
wine installed but unusable! zindadilfaiz Linux - Software 1 02-20-2003 05:51 AM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration