Summary: | net-analyzer/nmap asks for root privileges, but, running as root fails to open net interface | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Sergey S. Starikoff <Ikonta> |
Component: | Current packages | Assignee: | Michal Januszewski (RETIRED) <spock> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Sergey S. Starikoff
2010-03-18 08:25:22 UTC
Please include the output of `emerge -pv libpcap`. Also, if you run `ifconfig`, is the eth0 interface listed as UP? emerge -pv libpcap shows: [ebuild R ] net-libs/libpcap-1.0.0-r2 USE="-bluetooth -ipv6" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB eth0 of course is up. Even more: running from unpriviledged user nmap does scan finding everything I need. (In reply to comment #2) > emerge -pv libpcap shows: > > [ebuild R ] net-libs/libpcap-1.0.0-r2 USE="-bluetooth -ipv6" 0 kB > > Total: 1 package (1 reinstall), Size of downloads: 0 kB Could you please try upgrading libpcap to libpcap-1.0.1_pre20090812 to see whether this affects the problem in any way? (In reply to comment #3) > Could you please try upgrading libpcap to libpcap-1.0.1_pre20090812 to see > whether this affects the problem in any way? > I've updated libpcap to net-libs/libpcap-1.0.1_pre20090812 The result is the same. (In reply to comment #4) > (In reply to comment #3) > > Could you please try upgrading libpcap to libpcap-1.0.1_pre20090812 to see > > whether this affects the problem in any way? > > > I've updated libpcap to net-libs/libpcap-1.0.1_pre20090812 > The result is the same. Do you have libdnet installed on your system? Could you please post the output of `ldd /usr/bin/nmap`? No, dev-libs/libdnet is not installed on my system. $ ldd /usr/bin/nmap linux-gate.so.1 => (0xb80a9000) libpcre.so.0 => /lib/libpcre.so.0 (0xb805f000) libpcap.so.1 => /usr/lib/libpcap.so.1 (0xb802f000) libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7fe6000) libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7e9a000) libdl.so.2 => /lib/libdl.so.2 (0xb7e96000) libstdc++.so.6 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libstdc++.so.6 (0xb7da9000) libm.so.6 => /lib/libm.so.6 (0xb7d83000) libgcc_s.so.1 => /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgcc_s.so.1 (0xb7d75000) libc.so.6 => /lib/libc.so.6 (0xb7c2d000) libz.so.1 => /lib/libz.so.1 (0xb7c19000) /lib/ld-linux.so.2 (0xb80aa000) Is this still a problem with nmap 5.35? (In reply to comment #7) > Is this still a problem with nmap 5.35? > net-analyzer/nmap-5.21-r1 on another system works normally. Tomorrow I'll check it on the problem one. (In reply to comment #7) > Is this still a problem with nmap 5.35? > Also after complete rebuild world (emerge -e world) on the problem installation net-analyzer/nmap-5.21-r1 works normally (as it should). Let's close the bug as WORKSFORME then. If you run into this problem again, feel free to reopen it. |