From 784c9a34553156a1b5c6cb40e847c7668ef3ed2c Mon Sep 17 00:00:00 2001 From: Bandie Date: Fri, 6 Apr 2018 10:16:29 +0200 Subject: [PATCH] Make auth file readable to users. (Fixes #42) --- src/pam_panic_pw/pam_panic_pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pam_panic_pw/pam_panic_pw.c b/src/pam_panic_pw/pam_panic_pw.c index 564d696..6f54cda 100644 --- a/src/pam_panic_pw/pam_panic_pw.c +++ b/src/pam_panic_pw/pam_panic_pw.c @@ -31,7 +31,7 @@ int writePasswords(char pw[][99]){ fclose(f); - chmod(PPASSFILE, 0600); + chmod(PPASSFILE, 0644); return 0; }