Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Nmap Development: Re: Running NMAP as a non root user - patch

Re: Running NMAP as a non root user - patch

From: Fyodor <fyodor_at_insecure.org>
Date: Mon, 16 May 2005 11:54:22 -0700

On Mon, May 16, 2005 at 12:51:47PM +0300, Uri Gilad wrote:
> using the linux kernel capabilities (
> http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/capfaq-0.2.txt),
> and the following patch for nmap it is possible to run nmap as a
> non-root user granting it only raw network capabilities.

Good point. I have modified Nmap as follows for the next version:

  Added new --privileged command-line option and NMAP_PRIVILEGED
  environmental variable. Either of these tell Nmap to assume that
  the user has full privileges to execute raw packet scans, OS
  detection and the like. This can be useful when Linux kernel
  capabilities or other systems are used that allow non-root users to
  perform raw packet or ethernet frame manipulation. Without this
  flag or variable set, Nmap bails on UNIX if geteuid() is nonzero.

Cheers,
Fyodor

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Received on May 16 2005

[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos