Hello Ajeetraina, you've been at LQ long enough to know you should fill in your profile details and ask specific questions. Besides, working with PAM isn't "playing" anymore: it's been part of the major GNU/Linux distributions since the past millennium now. At
http://www.kernel.org/pub/linux/libs...inux-PAM-html/ you'll find three guides to start with.