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

208 Views Asked by At

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?

1

There are 1 best solutions below

0
On BEST ANSWER

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.