How do I install nmap?

First day ever in the Linux world. I hit a road block right away.

Networkchuck on youtube seems to be able to install nmap just by writing: "apt install nmap -y" Does not work at all for me. Any idea what I am missing?

Thanks

3 Replies

Are you using Ubuntu or Debian? Running apt requires super-user privileges.

What error are you getting?

— sw

Hi, Im getting the same issue. How do I get super-user privileges for Debian?

Hey @krun17!

In order to run apt as a super user, you'll need use use the sudo command. If your limited user is not a member of the sudo user group, you will need to give them sudo privileges with the following command as root:

adduser <example_user> sudo

Of course, you'll need to change <example_user> to your username.

You can find more information on this example can be found in the Set-up and Secure guide. There's also a video all about sudo which should be really helpful.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct