I want to allow some users to only use SFTP but not SSH. Also I dont want these SFTP users ID and password to be stored in
/etc/passwd file. I want their id and password details will be stored in a separate password file. I will use the
pam_pwdfile module for SFTP authentication.
But the problem is I can't use
pam_pwdfile at the same time to authenticate both SSH and SFTP user. How can I do that?