In this paper we consider the initial-boundary value problem to the one-dimensional compressible Navier{Stokes equations for ideal gases. Both the viscous and heat conductive coeffcients are assumed to be positive constants, and the initial density is allowed to have vacuum. Global existence and uniqueness of strong solutions is established for any H2 initial data, which generalizes the well-known result of Kazhikhov and Shelukhin [J. Appl. Math. Mech., 41 (1977), pp. 273{282] to the case that with nonnegative initial density. An observation to overcome the diculty caused by the lack of the positive lower bound of the density is that the ratio of the density to its initial value is inversely proportional to the time integral of the upper bound of the temperature along the trajectory.