PAM module to perform auth and change username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi all,

I had a somewhat unique problem relating to PAM on a RHEL system. I hope
someone can take a look and check if there is a way to get this work.

Suppose the Linux box has a user account "A". On the console, I login with
or "C".  I have written a small PAM module that asks for a PW, and upon
internal authentication, it changes the PAM_NAME to "A" and returns
Basically it maps multiple non-existent system logins to a single system
This module is marked "sufficient" and ordered before pam_unix. Now I am
to login as "A", but only if "B", or "C", are present in /etc/passwd. If
they are not
present, after my module, the pam_unix module again asks for password, and
returns error at the end of the sequence.

Is it possible to login to a system with a non-existent account by
modifying the
username to a valid account in this manner?

Thanks for any help/pointers!


- KK

Pam-list mailing list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux