Ramesh Mani In general yes. So when you ship rpms or debs for the different distributions you would need to include these files and make sure they are installed at the right location. They are distribution specific (ie. RedHat uses different contents than Debian does).
In case these files are not present PAM will automatically fallback to /etc/pam.d/other . It again depends on the distribution what is in these files. Redhat/CentOS 7 default to deny everything I don't know what Debian is doing.
In the case of UNIX authentication the non-remote part will still allow authentication from /etc/passwd. I, personally, consider this outdated and it should be replaced by PAM. But if you choose UNIX as authentication mechanism it will still use the old code path.
My patch does however impact the remote authentication (ie. the C implementation). Remote authentication now only allows PAM and does not use /etc/passwd anymore. If you would like to mimic the old behavior you can symlink /etc/pam.d/ranger-remote to /etc/pam.d/passwd . I have chosen this to keep remote authentication simple and to make sure you are not triggering two login attempts (eg. if I would try PAM first and then /etc/passwd) as that could be a security incident.