A judge sentenced a Sharon man to life in prison without the possibility of parole for his role in a 2024 fatal shooting.