You can use Pam. Doing something similar to
https://www.google.co.il/url?sa=t=web=j=http://www.linux-pam.org/Linux-PAM-html/sag-pam_listfile.html=0ahUKEwiT-8Cr3PjQAhULvRQKHSkdBPIQFgggMAM=AFQjCNFSd1ceJZUO22TlDUb6XZWa4BieIg=Na3GqqikwOSw0qepvPaZwA
Ely
On Dec 16, 2016 12:51 PM, "E.S. Rosenberg"
Hi all,
Does anyone have experience/pointers on how to implement passwords for
specific services/devices, ie. have a different password that only
works for imap/webmail and can be stored in a device without worrying
about compromise going any further then what the password gives access
to?