The getty program is run from init. It normally runs login, which verifies the password and username from the user, then runs whatever shell is specified in /etc/passwd.
getty
init
login
/etc/passwd