From 9fac57260bceb4ff08cd1b06f2768f504ded690d Mon Sep 17 00:00:00 2001 From: qwazer Date: Fri, 20 Jan 2023 10:52:06 +0300 Subject: PAM config: split on subsections, add "Debian 12" section --- Mounting-on-login-using-pam_mount.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Mounting-on-login-using-pam_mount.md b/Mounting-on-login-using-pam_mount.md index e11e802..9f74b5e 100644 --- a/Mounting-on-login-using-pam_mount.md +++ b/Mounting-on-login-using-pam_mount.md @@ -35,11 +35,18 @@ Replace `YOURUSERNAME` with your user name. PAM config ---------- - -An example `/etc/pam.d/sshd` on Fedora 24 and an example `/etc/pam.d/sddm` on Fedora 31 Workstation is shown below. Basically, pam_mount must be called two times: +PAM config located at `/etc/pam.d/`. +Basically, pam_mount must be called two times: 1. As the last element in "auth" so it gets the password. 2. As the last element in "session", where it performs the actual mount. +#### Debian 12 + +No special config is required, since `/etc/pam.d/common-auth` and `/etc/pam.d/common-session` contains required lines. + +#### Fedora 24 example +An example `/etc/pam.d/sshd` on Fedora 24 and an example `/etc/pam.d/sddm` on Fedora 31 Workstation is shown below. + `/etc/pam.d/sshd` ``` #%PAM-1.0 -- cgit v1.2.3