E
E
elsamelaski2019-02-09 09:06:36
CentOS
elsamelaski, 2019-02-09 09:06:36

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

1 answer(s)
V
Vitsliputsli, 2019-02-09
@elsamelaski

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 question

Ask a Question

731 491 924 answers to any question