diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-05 20:22:47 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-05 20:22:47 +0200 |
commit | 847658395e399d6d4ef21a247dbad02a9c921400 (patch) | |
tree | f673856c3219a507861a4917d791588efdf5bc62 /doc | |
parent | 343eacbec9d9aa2aed5f9c44b9473cc9dc5e9753 (diff) | |
download | gnu-guix-847658395e399d6d4ef21a247dbad02a9c921400.tar gnu-guix-847658395e399d6d4ef21a247dbad02a9c921400.tar.gz |
system: 'sudoers' is now a file-like object.
Partly fixes <http://bugs.gnu.org/20720>
Reported by Alex Kost <alezost@gmail.com>.
* gnu/system.scm (etc-directory): Change default #:sudoers value to a
'plain-file'. Don't bind it. Remove #~#$.
(maybe-string->file): New procedure.
(operating-system-etc-directory): Use it.
(%sudoers-specification): Use 'plain-file'.
* doc/guix.texi (operating-system Reference): Adjust accordingly.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index 2082fd765c..ecdfa1b1ce 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -4556,7 +4556,8 @@ List of string-valued G-expressions denoting setuid programs. @item @code{sudoers} (default: @var{%sudoers-specification}) @cindex sudoers -The contents of the @file{/etc/sudoers} file as a string. +The contents of the @file{/etc/sudoers} file as a file-like object +(@pxref{G-Expressions, @code{local-file} and @code{plain-file}}). This file specifies which users can use the @command{sudo} command, what they are allowed to do, and what privileges they may gain. The default |