I am trying to prevent bash to ask for sudo permission to run the port command (OSX packet manager) adding it to visudo. I basically tried to follow this SO thread but I still get an error The same selfupdate command runs smoothly if I sudo it. My visudo has the following lines and I also tried susbtituitng the last