A 150MeV injector electron linac for the SSRF is under construction at SINAP.This linac has been installed, commissioned and handed over to the SSRF during the period of 2006—2007.This paper describes the special needs of an injector for a third generation synchrotron light source and the two specific modes of operation for this linac.The design results and the commissioning results for this linac are given in this paper.