Effector cytotoxic CD8+ T cells induced by B cell deficiency are protective against lethal secondary bacterial pneumonia. Here, CD8A is linked to B cell deficiency.