Results 1 to 9 of 9

Thread: Nmap Question.

  1. #1
    Senior Member
    Join Date
    May 2003
    Posts
    747

    Arrow Nmap Question.

    I hope this isn't and entirely stupid question, but it would be worth it to get the answer.

    Is there a way to give a terminal root permissions from a limited access account in linux so i can use all of the switches for nmap? I can run many of them, but some of the switches i want to use require me to run nmap with root permissions. Or if there is an even easier way of going about this that would be great.

    I browsed over to /usr/bin/nmap hopeing to get a prompt asking me for the root password after i double-clicked it, but nothing opens up.

    Thanks in advance.

    ~FrWk

  2. #2
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,325
    Lets see here... if I'm understanding correctly...

    If you have the root password or are belonging to the root group...

    Open a terminal and then su to root

    $su

    enter password for root

    then you have a root prompt...

    #nmap -options for CLI versoin

    if you like gui better...

    #nmapfe &

    will open the nmap front end and free up your terminal window for more commands.
    Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.

  3. #3
    Senior Member
    Join Date
    Feb 2003
    Location
    Memphis, TN
    Posts
    3,747
    I know that I have an option on one of my *nix boxes to open up a shell as superuser mode.

    That allows me to use all options of nmap.

    Or do what PhishPhreek said.
    =

  4. #4
    Master-Jedi-Pimps0r & Moderator thehorse13's Avatar
    Join Date
    Dec 2002
    Location
    Washington D.C. area
    Posts
    2,885
    if you like gui better...

    #nmapfe &
    One quick note, be sure you are in an X windows session when issuing this command or you will get an error message stating that a display cannot be started.

    Our scars have the power to remind us that our past was real. -- Hannibal Lecter.
    Talent is God given. Be humble. Fame is man-given. Be grateful. Conceit is self-given. Be careful. -- John Wooden

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Posts
    114
    also:
    sudo nmap -options
    Which is the same as:
    su
    nmap -options
    exit

  6. #6
    AO übergeek phishphreek's Avatar
    Join Date
    Jan 2002
    Posts
    4,325
    One quick note, be sure you are in an X windows session when issuing this command or you will get an error message stating that a display cannot be started.
    Nice side note. I have a tendancy to leave the little but important details out...

    I browsed over to /usr/bin/nmap hopeing to get a prompt asking me for the root password after i double-clicked it, but nothing opens up.
    I was hoping everyone would pick up on the fact that he was doubleclicking... which means he is in a GUI already... as AFAIK doubleclicking in a CLI won't do you much good...
    Quitmzilla is a firefox extension that gives you stats on how long you have quit smoking, how much money you\'ve saved, how much you haven\'t smoked and recent milestones. Very helpful for people who quit smoking and used to smoke at their computers... Helps out with the urges.

  7. #7
    Senior Member
    Join Date
    May 2003
    Posts
    472
    well u most probably wud like to have sudo.....

    with sudo u will be able to have a user with normal account to run a program with root permissions...

    from sudo home page:
    Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while logging the commands and arguments.
    to setup sudo ...u need to run visudo to configure the users who can run prohrams with superuser permissions and define which program they can run with su permissions...

    best place to strat with :
    http://www.sudo.ws/sudo/man/sudoers.html -- The HOME of Sudo...
    http://www.onlamp.com/lpt/a/2704 -- O'Reilly Documentation...would be helpful
    http://www.devveb.org/linux/linux_Sudo.html -- Another Good Documentation....
    http://www.krnlpanic.com/tutorials/sudo.php --- A quick tute
    http://translate.google.com/translat...UTF-8%26sa%3DN -- another gud and quick tool

    Infact i did this for myself..unfortunately i dont have access to that system right now...to give away the sudoer configuration...but its pretty simple...hope u have got ur problem solved
    guru@linux:~> who I grep -i blonde I talk; cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;

  8. #8
    Senior Member
    Join Date
    Jan 2002
    Posts
    1,207
    There are a number of kernel patches and/or userspace programs which can manipulate a user or program's "Capabilities" in Linux.

    Contrary to what you may think, it isn't actually being root which enables nmap to work fully, it's a "Capability" called cap_net_raw.

    I have yet to get any of these things to work properly. Some of the ones which might do the trick are

    gr_security
    pam_capability

    But I have been unable to get them to do what I wanted to do (give some normal users cap_net_raw) without unpleasant side effects.

    Slarty

  9. #9
    an easy way would just to put the sticky bit on the permissions of /usr/bin/nmap so it runs as root.
    chmod o+x /usr/bin/nmap

    err set uid bit not sticky bit lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •