sudo visudo

# Cmnd alias
Cmnd_Alias VAGRANT_HOSTS = /bin/cp /Users/Tuncay/.vagrant.d/tmp/hosts.local /etc/hosts
# User privilege
%sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS

_ vagrant up

#trick for sudo style alias _="sudo" add in your shell profile..

if you don’t want to enter a password for sudo always.. Tuncay ALL=(ALL) NOPASSWD:ALL