guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: system: Make PAM store SHA-512 encrypted passwords in /etc/shadow


From: ???
Subject: 01/01: system: Make PAM store SHA-512 encrypted passwords in /etc/shadow.
Date: Mon, 24 Aug 2015 00:15:12 +0000

iyzsong pushed a commit to branch master
in repository guix.

commit 9297065a2b2151636194b2c91e957a3ec0b33532
Author: 宋文武 <address@hidden>
Date:   Sun Aug 23 06:33:59 2015 +0800

    system: Make PAM store SHA-512 encrypted passwords in /etc/shadow.
    
    Fixes <http://bugs.gnu.org/21318>.
    
    * gnu/system/linux.scm (unix-pam-service)[password]: Add 'sha512' and
      'shadow' to arguments.
---
 gnu/system/linux.scm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gnu/system/linux.scm b/gnu/system/linux.scm
index aaaa8c6..7461a4a 100644
--- a/gnu/system/linux.scm
+++ b/gnu/system/linux.scm
@@ -148,7 +148,11 @@ should be the name of a file used as the 
message-of-the-day."
                           (module "pam_unix.so")
                           (arguments '("nullok")))
                          unix)))
-         (password (list unix))
+         (password (list (pam-entry
+                          (control "required")
+                          (module "pam_unix.so")
+                          ;; Store SHA-512 encrypted passwords in /etc/shadow.
+                          (arguments '("sha512" "shadow")))))
          (session (if motd
                       (list unix
                             (pam-entry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]