Configure Ranger authentication for PAM

How to configure Ranger to use PAM for user authentication.

  1. In Cloudera Manager, select Ranger, then click the Configuration tab.
  2. Under Admin Authentication Method, select PAM, then click Save Changes.
  3. Allow the Ranger user to read the /etc/shadow file:
    groupadd shadow
    usermod -a -G shadow ranger
    chgrp shadow /etc/shadow
    chmod g+r /etc/shadow
  4. Select Actions > Restart to restart Ranger.