Passive DNS

hi,i’m learning “Using Bro for Building Passive DNS Data”, and i encounter the error(Permission denied) in executing these two long command.

BRO_PDNS_DB=mysql://pdns:pdns@localhost/pdns /nsm/bro/share/bro/site/bro-pdns/bro_pdns.py serve
BRO_PDNS_DB=mysql://pdns:pdns@localhost/pdns /nsm/bro/share/bro/site/bro-pdns/bro_pdns.py process /nsm/bro/logs/current/dns.log

Thanks for your reading ,would you please give me some advice ?

Do you have execute privileges for the python script?

Probably:
chmod u+x /nsm/bro/share/bro/site/bro-pdns/bro_pdns.py

Apologies if that’s not the case - I would expect a more descriptive error message or stack trace were that not the cause.

Chris