There still su'd to $USER at this point, they need to exit to become the vagrant user again and then use sudo to edit the file