Partially implement pam.  Right now it's doing something similar to su which is not what we really want.