In addition to bus driver, another person sells tickets and lets you go through the metal gate. (Worst drivers I've seen in South America by the way.)
Photo essay: Arriving in Rio de Janeiro