diff options
author | Ludovic Courtès <ludo@gnu.org> | 2021-12-31 17:45:12 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-01-01 15:10:12 +0100 |
commit | 671e6a81804f264ddcdd6fe7579644404da079b8 (patch) | |
tree | 883a743fd1f9a261562fda1b5d5ae626feef25a8 /doc | |
parent | 806a4e986d95a31cf09588cf10d1b9dae28a3d5e (diff) | |
download | guix-671e6a81804f264ddcdd6fe7579644404da079b8.tar guix-671e6a81804f264ddcdd6fe7579644404da079b8.tar.gz |
system: Allow 'chfn' to change the user's full name.
Fixes <https://issues.guix.gnu.org/52539>.
Reported by Jacob First <jacob.first@member.fsf.org>.
* 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) <login.defs>: 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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 5 |
1 files changed, 5 insertions, 0 deletions
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. |