This question is ancient and this answer is just a guess but...
changing
%admin ALL=(ALL) NOPASSWD:/usr/local/bin/rescan
to
your_usual_user_name ALL=(ALL) NOPASSWD:/usr/local/bin/rescan
might help. But, please be warned: I have no idea about the security risks associated with doing this!