summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwazer2023-01-20 10:52:06 +0300
committerqwazer2023-01-20 10:52:06 +0300
commit9fac57260bceb4ff08cd1b06f2768f504ded690d (patch)
tree5afcb600e6149d3ef0dcd9bd68e1dafaa144d9d4
parent7b7721c2f495e4948c0b773e20740672703dcd9c (diff)
PAM config: split on subsections, add "Debian 12" section
-rw-r--r--Mounting-on-login-using-pam_mount.md11
1 files 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