From 671e6a81804f264ddcdd6fe7579644404da079b8 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 31 Dec 2021 17:45:12 +0100 Subject: system: Allow 'chfn' to change the user's full name. Fixes . Reported by Jacob First . * gnu/build/accounts.scm (allocate-passwd): Add comment as to why 'real-name' is taken from PREVIOUS. Add (not system?) to the condition. * gnu/system.scm (operating-system-etc-service) : Add "CHFN_RESTRICT". * gnu/system.scm (%setuid-programs): Add "chfn". * gnu/system/pam.scm (base-pam-services): Add "chfn". * doc/guix.texi (User Accounts): Document it. --- doc/guix.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/guix.texi b/doc/guix.texi index ebfcfee7f7..354eead02b 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -15387,6 +15387,11 @@ account is created. @item @code{comment} (default: @code{""}) A comment about the account, such as the account owner's full name. +Note that, for non-system accounts, users are free to change their real +name as it appears in @file{/etc/passwd} using the @command{chfn} +command. When they do, their choice prevails over the system +administrator's choice; reconfiguring does @emph{not} change their name. + @item @code{home-directory} This is the name of the home directory for the account. -- cgit 1.4.1