How To Install pam_script on Fedora 34
Introduction
In this tutorial we learn how to install pam_script
on Fedora 34.
What is pam_script
pam_script allows you to execute scripts during authorization, password changes and session openings or closings. pam_script 1.1.9 8.fc34 x86_64 33 k pam_script-1.1.9-8.fc34.src.rpm fedora PAM module for executing scripts https GPLv2+ pam_script allows you to execute scripts during authorization, password changes and session openings or closings.
We can use yum
or dnf
to install pam_script
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install pam_script.
Install pam_script on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install pam_script
using dnf
by running the following command:
sudo dnf -y install pam_script
Install pam_script on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install pam_script
using yum
by running the following command:
sudo yum -y install pam_script
How To Uninstall pam_script on Fedora 34
To uninstall only the pam_script
package we can use the following command:
sudo dnf remove pam_script
pam_script Package Contents on Fedora 34
/etc/pam-script.d
/etc/pam_script
/etc/pam_script_acct
/etc/pam_script_auth
/etc/pam_script_passwd
/etc/pam_script_ses_close
/etc/pam_script_ses_open
/lib/security/pam_script.so
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/81dbb9f00e620819f26c9e17d31a17ca79d2cf
/usr/share/doc/pam_script
/usr/share/doc/pam_script/AUTHORS
/usr/share/doc/pam_script/COPYING
/usr/share/doc/pam_script/ChangeLog
/usr/share/doc/pam_script/NEWS
/usr/share/doc/pam_script/README
/usr/share/doc/pam_script/README.pam_script
/usr/share/man/man7/pam-script.7.gz
/etc/pam-script.d
/etc/pam_script
/etc/pam_script_acct
/etc/pam_script_auth
/etc/pam_script_passwd
/etc/pam_script_ses_close
/etc/pam_script_ses_open
/lib64/security/pam_script.so
/usr/lib/.build-id
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/504976305d26ad94c4db0f8cb0b70f6a1b90c7
/usr/share/doc/pam_script
/usr/share/doc/pam_script/AUTHORS
/usr/share/doc/pam_script/COPYING
/usr/share/doc/pam_script/ChangeLog
/usr/share/doc/pam_script/NEWS
/usr/share/doc/pam_script/README
/usr/share/doc/pam_script/README.pam_script
/usr/share/man/man7/pam-script.7.gz
References
- [pam_script website](https://github.com/jeroennijhof/pam_script https://github.com/jeroennijhof/pam_script)
Summary
In this tutorial we learn how to install pam_script
on Fedora 34 using yum and dnf.