mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-04-27 22:56:08 -04:00
18 lines
305 B
Bash
Executable File
18 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Copyright (C) 2019 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
## Similar to:
|
|
## /usr/libexec/security-misc/pam_only_if_login
|
|
|
|
set -x
|
|
|
|
true "PAM_SERVICE: $PAM_SERVICE"
|
|
|
|
if [ "$PAM_SERVICE" = "su" ]; then
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|