Issue with nmap (needs root permissions) after running Greenbone 22.4 docker compose

Hi,

I just run all the steps described here Greenbone Community Containers 22.4 - Greenbone Community Documentation and all looks good except when I start scan.

When running the scan (with nmap All TCP and Nmap top 100) the task gives me the error “Nmap (NASL wrapper )ERROR: You requested a Nmap scan type which requires root privileges but scanner is running under an unprivileged user. Start scanner as root or use a different portrange to get this scan working.”

Could you please help?
Thanks in advance

GVM versions

gsad: (‘gsad --version’) = Greenbone Security Assistant 22.04.0
gvmd: (‘gvmd --version’) = Greenbone Vulnerability Manager 22.4.0~dev1
openvas-scanner: (‘openvas --version’, in older GVM versions < 11: ‘openvassd --version’) = OpenVAS 22.4.1~dev1
gvm-libs: = gvm-libs 22.4.1~dev1

Environment

Operating system: Debian 10
Kernel: (‘uname -a’) 5.4.166-1-pve
Installation method / source: docker compose

Hi,

thanks for letting us know about this problem. It was an issue when using this specific port list with UDP. Fix "Nmap scan type requires root privileges" error with container by bjoernricks · Pull Request #1160 · greenbone/openvas-scanner · GitHub fixes the container image. Just pull the new one.

1 Like

Hi Briks,

Many thanks for solving the problem so quickly!

I tested it and it now works as expected.

Best,
Salva

2 Likes