From 6de777a986e1b8d38e5030106f2abb937eca6232 Mon Sep 17 00:00:00 2001 From: sghctoma Date: Thu, 30 Aug 2018 09:58:57 +0200 Subject: Add FreeBSD-specific PAM configuration The "login" PAM configuration means somathing entirely different on FreeBSD than on Linux: if you try to authenticate as the calling user, it OKs the request without prompting for password. The "passwd" config implements the desired functionality, therefore it should be used by swaylock. --- swaylock/pam/swaylock | 6 ------ swaylock/pam/swaylock.freebsd | 6 ++++++ swaylock/pam/swaylock.linux | 6 ++++++ 3 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 swaylock/pam/swaylock create mode 100644 swaylock/pam/swaylock.freebsd create mode 100644 swaylock/pam/swaylock.linux (limited to 'swaylock/pam') diff --git a/swaylock/pam/swaylock b/swaylock/pam/swaylock deleted file mode 100644 index 6a36b0d6..00000000 --- a/swaylock/pam/swaylock +++ /dev/null @@ -1,6 +0,0 @@ -# -# PAM configuration file for the swaylock screen locker. By default, it includes -# the 'login' configuration file (see /etc/pam.d/login) -# - -auth include login diff --git a/swaylock/pam/swaylock.freebsd b/swaylock/pam/swaylock.freebsd new file mode 100644 index 00000000..603fc185 --- /dev/null +++ b/swaylock/pam/swaylock.freebsd @@ -0,0 +1,6 @@ +# +# PAM configuration file for the swaylock screen locker. By default, it includes +# the 'passwd' configuration file (see /etc/pam.d/passwd) +# + +auth include passwd diff --git a/swaylock/pam/swaylock.linux b/swaylock/pam/swaylock.linux new file mode 100644 index 00000000..6a36b0d6 --- /dev/null +++ b/swaylock/pam/swaylock.linux @@ -0,0 +1,6 @@ +# +# PAM configuration file for the swaylock screen locker. By default, it includes +# the 'login' configuration file (see /etc/pam.d/login) +# + +auth include login -- cgit v1.2.3