The attached patch (/nmap SVN rev 4344) allows the NMAP_UNPRIVILEGED
environment variable to be an alternative to --unprivileged like
NMAP_PRIVILEGED is for --privileged.
Thanks,
Kris Katterjohn
Index: NmapOps.cc
===================================================================
--- NmapOps.cc (revision 4343)
+++ NmapOps.cc (revision 4344)
@@ -182,6 +182,8 @@
#else
if (getenv("NMAP_PRIVILEGED"))
isr00t = 1;
+ else if (getenv("NMAP_UNPRIVILEGED"))
+ isr00t = 0;
else
isr00t = !(geteuid());
#endif
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
Received on Jan 11 2007