Skip to content

Commit

Permalink
Update pamdir_suse to accommodate with TW pam.d move (neutrinolabs#2413)
Browse files Browse the repository at this point in the history
On newer builds of openSUSE tumbleweed the path of pam.d has moved from
/usr/etc/pam.d to /usr/lib/pam.d, which prevents install script to
correctly guess pam rules. Updating path in mkpamrules solves the
problem.
  • Loading branch information
YoukouTenhouin authored Nov 8, 2022
1 parent cc43061 commit 4ff968b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion instfiles/pam.d/mkpamrules
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ outfile="$3"

service="xrdp-sesman"
pamdir="/etc/pam.d"
pamdir_suse="/usr/etc/pam.d"
pamdir_suse="/usr/lib/pam.d"
if [ ! -d $pamdir_suse ]; then
# Older SUSE distros uses /usr/etc/pam.d
pamdir_suse="/usr/etc/pam.d"
fi

# Modules needed by xrdp-sesman.unix, if we get to that
unix_modules_needed="pam_unix.so pam_env.so pam_nologin.so"
Expand Down

0 comments on commit 4ff968b

Please sign in to comment.