Nmap: pissing. me. off.

Kyle Smith askreet at gmail.com
Wed Mar 16 23:22:40 EDT 2011


On my Ubuntu system it was 755 by default and, as expected, returned MAC
address data as root, but not as a non-privileged user.  If I chmod ug+s the
binary, non-priv users suddenly get MAC data as well.  None of this explains
why root would ever *not* receive MAC data, however.

If it helps an nmap -v shows version 5.00, and I'm using Ubuntu 10.04
Server.


On Wed, Mar 16, 2011 at 10:30 PM, Ken D'Ambrosio <ken at jots.org> wrote:

> > You're sure the base nmap executable binary bits are the same so
> > it's something specific to the failing machine, yes?
>
> D'oh!  This is what happens when going from window to window while typing
> replies -- sometimes one xterm looks an awful lot like another.  You
> nailed it: somehow, nmap on the failing machine was -rwxr-xr-x (vs.
> -rwsr-sr-x on the functioning one).  It became obvious I'd missed
> something when this line popped up in strace:
>
> mmap2(NULL, 156036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE...
>
> I *am* curious, now, though: I always thought SUID, etc., bits affected
> *non*-root users.  How is it that root is being denied root privs?
>
>
>
>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>



-- 
Kyle Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20110316/de37c0a9/attachment.html 


More information about the gnhlug-discuss mailing list