Script permissions

I have tool netwatch configured to run some script, which consists of the only command to send email:

name="dlap1-down" owner="kostik" policy=read,write,policy,test,sensitive 
     dont-require-permissions=no run-count=0 
     source=/tool e-mail send subject="dlap1 down" to=kostik@tom.home

This results in error

18:20:03 script,error could not run script dlap1-down: not enough permissions

and of course no email is sent.

What permissions are needed for email ?

I have a similar issue after upgrading to 6.43.1. I have a script running at startup from the scheduler and now my log is full of errors.


/system scheduler
add disabled=no interval=10m name=Schedule1 on-event=Script1 policy=read,write start-time=startup

The above schedule configuration worked with RouterOS 6.42.x.


/system scheduler
add disabled=no interval=10m name=Schedule1 on-event=Script1 policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup

I changed the permission to get rid of the following error message. I’m not sure what caused the problem.


00:57:00 script,error could not run script Script1: not enough permissions

Edit: Obviously, the policy must match each other in both the scheduler and the script.

Same problem here, before last update netwatch with scripts it was working perfectly. Now in 6.43.2 when a host became down and launch and script it returns :

script,error could not run script hd_up: not enough permissions

Any news from mikrotik ??

For some time now:
http://forum.mikrotik.com/t/netwatch-deprecated/119579/1

In short, Netwatch can only execute scripts with “write, read, test, reboot” policies. Remove all other policies from your scripts.

Or use dont-require-permissions=yes