When I run
C:\Windows\System32\bash.exe -c "sudo updatedb"
from a (privileged, if needed) windows command line, I get a prompt for sudo password.
ALL ALL=NOPASSWD: /usr/bin/updatedb.mlocate -D in /etc/sudoers does not make a difference.
I can run
sudo updatedb without a password prompt from within bash itself, regardless of the line above in sudoers.
Running without sudo yields the standard and expected
updatedb: can not open a temporary file for '/var/lib/mlocate/mlocate.db'
I would like to find a windows cmd line that works so I can put updatedb in a scheduled task. If sudoers need to be modified, fine.