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.
This commit is contained in:
宋文武 2015-08-23 06:33:59 +08:00
parent c6e59259fd
commit 9297065a2b
1 changed files with 5 additions and 1 deletions

View File

@ -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