How To Install pam_mount on Fedora 36

In this tutorial we learn how to install pam_mount in Fedora 36. pam_mount is A PAM module that can mount volumes for a user session

Introduction

In this tutorial we learn how to install pam_mount on Fedora 36.

What is pam_mount

This module is aimed at environments with central file servers that a user wishes to mount on login and unmount on logout, such as (semi-)diskless stations where many users can logon and where statically mounting the entire /home from a server is a security risk, or listing all possible volumes in /etc/fstab is not feasible. * Users can define their own list of volumes without having to change (possibly non-writable) global config files. * Single sign-on feature - the user needs to type the password just once (at login) * Transparent mount process * No stored passwords * Volumes are unmounted on logout, freeing system resources and not leaving data exposed. The module also supports mounting local filesystems of any kind the normal mount utility supports, with extra code to make sure certain volumes are set up properly because often they need more than just a mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE, dm-crypt and LUKS. If you intend to use pam_mount to protect volumes on your computer using an encrypted filesystem system, please know that there are many other issues you need to consider in order to protect your data. For example, you probably want to disable or encrypt your swap partition (the cryptoswap can help you do this). Do not assume a system is secure without carefully considering potential threats.

We can use yum or dnf to install pam_mount on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pam_mount.

Install pam_mount on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pam_mount using dnf by running the following command:

sudo dnf -y install pam_mount

Install pam_mount on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pam_mount using yum by running the following command:

sudo yum -y install pam_mount

How To Uninstall pam_mount on Fedora 36

To uninstall only the pam_mount package we can use the following command:

sudo dnf remove pam_mount

pam_mount Package Contents on Fedora 36

---
title: "How To Install pam_mount on Fedora 36"
linkTitle: "pam_mount"
type: "docs"
description: "In this tutorial we learn how to install pam_mount in Fedora 36. pam_mount is A PAM module that can mount volumes for a user session"
date: "2022-08-17"
lastmod: "2022-08-17"
#image: /images/fedora/36/pam_mount-featured.png
---

## Introduction

In this tutorial we learn how to install `pam_mount` on Fedora 36.

### What is `pam_mount`

> This module is aimed at environments with central file servers that a user wishes to mount on login and unmount on logout, such as (semi-)diskless stations where many users can logon and where statically mounting the entire /home from a server is a security risk, or listing all possible volumes in /etc/fstab is not feasible.  * Users can define their own list of volumes without having to change   (possibly non-writable) global config files. * Single sign-on feature - the user needs to type the password just once (at login) * Transparent mount process * No stored passwords * Volumes are unmounted on logout, freeing system resources and not leaving   data exposed.  The module also supports mounting local filesystems of any kind the normal mount utility supports, with extra code to make sure certain volumes are set up properly because often they need more  than just a mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE, dm-crypt and LUKS.  If  you  intend  to use pam_mount to protect volumes on your computer using an encrypted filesystem system, please know that there are many other issues you need to consider in order to protect your data. For example, you probably want to disable or encrypt your swap partition (the cryptoswap can help you do this). Do not assume  a  system  is  secure  without  carefully  considering potential threats.  

We can use `yum` or `dnf` to install `pam_mount` on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pam_mount.

## Install pam_mount on Fedora 36 Using dnf

Update yum database with `dnf` using the following command.

```bash
sudo dnf makecache --refresh

After updating yum database, We can install pam_mount using dnf by running the following command:

sudo dnf -y install pam_mount

Install pam_mount on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pam_mount using yum by running the following command:

sudo yum -y install pam_mount

How To Uninstall pam_mount on Fedora 36

To uninstall only the pam_mount package we can use the following command:

sudo dnf remove pam_mount

pam_mount Package Contents on Fedora 36

/etc/security/pam_mount.conf.xml
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/3598a9895e982d5bdf1141dd50efa5b1199416
/usr/lib/.build-id/17
/usr/lib/.build-id/17/0609db24aa33f4d80dc607486f579aa5b8f05f
/usr/lib/.build-id/40
/usr/lib/.build-id/40/0674a911da67a461d7c7f5e9cd8db2b4e1ca1d
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/47fa20f6a14d7c30bcc13a57ee8580d2d75ee2
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/970a7fa4562ae9cf8af21490139a55ff67b789
/usr/lib64/libcryptmount.so.0
/usr/lib64/libcryptmount.so.0.0.0
/usr/lib64/security/pam_mount.so
/usr/sbin/mount.crypt
/usr/sbin/mount.crypto_LUKS
/usr/sbin/pmt-ehd
/usr/sbin/pmvarrun
/usr/sbin/umount.crypt
/usr/sbin/umount.crypto_LUKS
/usr/share/doc/pam_mount
/usr/share/doc/pam_mount/bugs.txt
/usr/share/doc/pam_mount/faq.txt
/usr/share/doc/pam_mount/news.txt
/usr/share/doc/pam_mount/options.txt
/usr/share/doc/pam_mount/pam_mount.conf.xml
/usr/share/doc/pam_mount/todo.txt
/usr/share/licenses/pam_mount
/usr/share/licenses/pam_mount/LICENSE.GPL2
/usr/share/licenses/pam_mount/LICENSE.GPL3
/usr/share/licenses/pam_mount/LICENSE.LGPL2
/usr/share/licenses/pam_mount/LICENSE.LGPL3
/usr/share/man/man5/pam_mount.conf.5.gz
/usr/share/man/man8/mount.crypt.8.gz
/usr/share/man/man8/mount.crypto_LUKS.8.gz
/usr/share/man/man8/pam_mount.8.gz
/usr/share/man/man8/pmt-ehd.8.gz
/usr/share/man/man8/pmvarrun.8.gz
/usr/share/man/man8/umount.crypt.8.gz
/usr/share/man/man8/umount.crypto_LUKS.8.gz
/usr/share/xml/pam_mount
/usr/share/xml/pam_mount/dtd
/usr/share/xml/pam_mount/dtd/pam_mount.conf.xml.dtd
/var/run/pam_mount

References

Summary

In this tutorial we learn how to install pam_mount on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).

/etc/security/pam_mount.conf.xml /usr/lib/.build-id /usr/lib/.build-id/78 /usr/lib/.build-id/78/19e2c4cdfc64bcc77599ad1d1fac27c238c738 /usr/lib/.build-id/b1 /usr/lib/.build-id/b1/31c688246173402dcdb94586c9f1a9f057c71a /usr/lib/.build-id/c5 /usr/lib/.build-id/c5/1c71208bd34f8109c9837762db795aa731073d /usr/lib/.build-id/e2 /usr/lib/.build-id/e2/a13c40f812f3591ad9428df6d5907216bd4886 /usr/lib/.build-id/ed /usr/lib/.build-id/ed/27939722ace4efac60cfc0a083a639a13dc583 /usr/lib/libcryptmount.so.0 /usr/lib/libcryptmount.so.0.0.0 /usr/lib/security/pam_mount.so /usr/sbin/mount.crypt /usr/sbin/mount.crypto_LUKS /usr/sbin/pmt-ehd /usr/sbin/pmvarrun /usr/sbin/umount.crypt /usr/sbin/umount.crypto_LUKS /usr/share/doc/pam_mount /usr/share/doc/pam_mount/bugs.txt /usr/share/doc/pam_mount/faq.txt /usr/share/doc/pam_mount/news.txt /usr/share/doc/pam_mount/options.txt /usr/share/doc/pam_mount/pam_mount.conf.xml /usr/share/doc/pam_mount/todo.txt /usr/share/licenses/pam_mount /usr/share/licenses/pam_mount/LICENSE.GPL2 /usr/share/licenses/pam_mount/LICENSE.GPL3 /usr/share/licenses/pam_mount/LICENSE.LGPL2 /usr/share/licenses/pam_mount/LICENSE.LGPL3 /usr/share/man/man5/pam_mount.conf.5.gz /usr/share/man/man8/mount.crypt.8.gz /usr/share/man/man8/mount.crypto_LUKS.8.gz /usr/share/man/man8/pam_mount.8.gz /usr/share/man/man8/pmt-ehd.8.gz /usr/share/man/man8/pmvarrun.8.gz /usr/share/man/man8/umount.crypt.8.gz /usr/share/man/man8/umount.crypto_LUKS.8.gz /usr/share/xml/pam_mount /usr/share/xml/pam_mount/dtd /usr/share/xml/pam_mount/dtd/pam_mount.conf.xml.dtd /var/run/pam_mount


## References

* [pam_mount website](http://pam-mount.sourceforge.net/)

## Summary

In this tutorial we learn how to install `pam_mount` on [Fedora 36](/fedora/36/) using [yum](/fedora/36/yum/) and [dnf]((/fedora/36/dnf/).