diff options
Diffstat (limited to 'gnu/system/linux.scm')
| -rw-r--r-- | gnu/system/linux.scm | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gnu/system/linux.scm b/gnu/system/linux.scm index b2daa13e066..6aebe159ba8 100644 --- a/gnu/system/linux.scm +++ b/gnu/system/linux.scm | |||
| @@ -125,9 +125,10 @@ | |||
| 125 | (let ((unix (pam-entry | 125 | (let ((unix (pam-entry |
| 126 | (control "required") | 126 | (control "required") |
| 127 | (module "pam_unix.so")))) | 127 | (module "pam_unix.so")))) |
| 128 | (lambda* (name #:key allow-empty-passwords?) | 128 | (lambda* (name #:key allow-empty-passwords? motd) |
| 129 | "Return a standard Unix-style PAM service for NAME. When | 129 | "Return a standard Unix-style PAM service for NAME. When |
| 130 | ALLOW-EMPTY-PASSWORDS? is true, allow empty passwords." | 130 | ALLOW-EMPTY-PASSWORDS? is true, allow empty passwords. When MOTD is true, it |
| 131 | should be the name of a file used as the message-of-the-day." | ||
| 131 | ;; See <http://www.linux-pam.org/Linux-PAM-html/sag-configuration-example.html>. | 132 | ;; See <http://www.linux-pam.org/Linux-PAM-html/sag-configuration-example.html>. |
| 132 | (let ((name* name)) | 133 | (let ((name* name)) |
| 133 | (pam-service | 134 | (pam-service |
| @@ -140,6 +141,12 @@ ALLOW-EMPTY-PASSWORDS? is true, allow empty passwords." | |||
| 140 | (arguments '("nullok"))) | 141 | (arguments '("nullok"))) |
| 141 | unix))) | 142 | unix))) |
| 142 | (password (list unix)) | 143 | (password (list unix)) |
| 143 | (session (list unix))))))) | 144 | (session (if motd |
| 145 | (list unix | ||
| 146 | (pam-entry | ||
| 147 | (control "optional") | ||
| 148 | (module "pam_motd.so") | ||
| 149 | (arguments (list (string-append "motd=" motd))))) | ||
| 150 | (list unix)))))))) | ||
| 144 | 151 | ||
| 145 | ;;; linux.scm ends here | 152 | ;;; linux.scm ends here |
