Answer the question
In order to leave comments, you need to log in
How to properly set permissions to run Nmap from PHP?
Hey! The question arose, how can I start nmap from under PHP (well, or from the user I specified, for example www-data), without sudo? I'm thinking of editing /etc/sudores so that everyone can run it with sudo.
How to do it right? Che there to write?
Answer the question
In order to leave comments, you need to log in
Just easier to do with sudo. For example, to allow specific commands to be executed only for a user on a specific host and without a password:
And do not forget that port scanning is considered a hacking attempt and entails criminal liability.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question