I ran the following command:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip `which nmap`
Now I'd like to add to my
~/.zshrc a line that detects such settings and exports
NMAP_PRIVILEGED=1. How could I do that?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community