pirate / security-growler

:satellite: A Mac menubar app that notifies you whenever SSH, VNC, sudo, or other auth events occur.
https://sweeting.me/security-growler
861 stars 57 forks source link

VPN triggers sudo lsof i:21 error #26

Closed TraderStf closed 8 years ago

TraderStf commented 8 years ago

sudo[123]: trader : no tty present and no askpass program specified ; TTY=unknown ; PWD=/Applications/Security Growler Light.app/Contents/Resources ; USER=root ; COMMAND=/usr/sbin/lsof +c 0 -i:21

Error msg repeated indefinitely, every 10-90 sec.

SGLight: v2.2 May, 2. VPN PPTP IP6 local only and IP6 off on router.

pirate commented 8 years ago

This is the same issue as: https://github.com/pirate/security-growler/issues/8

The temporary solution is to stick lsof in your sudoers file using sudo visudo:

# add to end of file
yourusername ALL=(ALL) NOPASSWD: /usr/sbin/lsof