Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMosakuji Hokuto <shikieiki@yamaxanadu.org>2022-11-08 13:05:55 +0300
committerGitHub <noreply@github.com>2022-11-08 13:05:55 +0300
commit4ff968bc980f6ff72c2e8312ce98ed67c2f6f9d8 (patch)
treeee0bda44f5695c090dcf72e6e5e6ac2a5f105e52
parentcc43061ed46da1547d908ff687cbdc8edf8345be (diff)
Update pamdir_suse to accommodate with TW pam.d move (#2413)
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.
-rwxr-xr-xinstfiles/pam.d/mkpamrules6
1 files changed, 5 insertions, 1 deletions
diff --git a/instfiles/pam.d/mkpamrules b/instfiles/pam.d/mkpamrules
index 989a52f4..230d92be 100755
--- a/instfiles/pam.d/mkpamrules
+++ b/instfiles/pam.d/mkpamrules
@@ -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"