Skip to content

Commit

Permalink
pam: debian: Explicitly include pam_limits for xrdp sessions
Browse files Browse the repository at this point in the history
This is required, as on Debian, pam_limits is not automatically included
for common sessions, and only for "login" sessions and session managers.
So, xrdp has to include it explicitly to make limits take effect.

See https://wiki.debian.org/Limits for details.
  • Loading branch information
ximion committed Dec 16, 2024
1 parent e07cc72 commit f581d8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions instfiles/pam.d/xrdp-sesman.debian
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ auth required pam_env.so readenv=1 envfile=/etc/default/locale

@include common-password

# Ensure resource limits are applied
session required pam_limits.so
# Set the loginuid process attribute.
session required pam_loginuid.so
# Update wtmp/lastlog
Expand Down

0 comments on commit f581d8e

Please sign in to comment.