Score:0

Capturing login data input by user while logging onto Linux

cn flag

I am trying to work on this user authentication problem where user enters the login data upon Linux boot, but the authentication takes place through a different connected device for security purposes and upon authentication the user is logged in.

Without getting into details of how the authentication works (it is already implemented and so is the communication between the Linux device and the other connected device). This is what I want to do:

  1. When user inputs login data on Linux boot up, I either want to capture it directly using my C++ application

or

  1. Save the login data temporarily to a file where my background C++ application can read it and delete it upon reading.

Any ideas?

waltinator avatar
it flag
You can do this with PAM (Pluggable Authentication Modules) (`man -k pam`), if you provide the module. It's Not Easy.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.