linuxlinux-kernellinux-capabilitieslinuxthreads

Is it possible to export the raw text password in Linux when the user is logging in?


I was just wondering, is it possible to export the raw text password into a file using echo "$password" >> /home/user/Desktop/file name. I know that the password is validated against the shadow file by pam_unix.so. Can the username and password exported before the raw text is being converted?


Solution

  • Of course you can substitute the login(1) command with one of your own and do the thing. You are in an opensource system. You are free to reprogram it. I have done it for fun. You can do also.