How to log in users without credentials?
You can do it like this:

global $user;
$user = user_load($uid);


Where the $uid is the User ID of the user you want to log in.

Note that this potentially opens you up to major security issues.