How To Install pam_afs_session on CentOS 7
Introduction
In this tutorial we learn how to install pam_afs_session
on CentOS 7.
What is pam_afs_session
pam-afs-session is a PAM module intended for use with a Kerberos v5 PAM module to obtain an AFS PAG (Process Authentication Group) and AFS tokens on login. It puts every new session in a PAG regardless of whether it was authenticated with Kerberos and runs a configurable external program to obtain tokens.
We can use yum
or dnf
to install pam_afs_session
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install pam_afs_session.
Install pam_afs_session on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install pam_afs_session
using yum
by running the following command:
Install pam_afs_session on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install pam_afs_session
using dnf
by running the following command:
How To Uninstall pam_afs_session on CentOS 7
To uninstall only the pam_afs_session
package we can use the following command:
References
Summary
In this tutorial we learn how to install pam_afs_session
on CentOS 7 using yum
and dnf
.