getty calls the login command which handles the user's username/password pair.
printable version
chaos
Everything2 Help