aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2022-01-07 18:27:56 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2022-01-07 21:45:38 +0100
commit2dfbd03a609a5781aa1391639526e9029b01c392 (patch)
tree4b9883e795653d2bb7a1a6634a7113c0520bfb80 /doc
parent33e62872bbbc8fa47d122893635767c4946b3256 (diff)
downloadguix-2dfbd03a609a5781aa1391639526e9029b01c392.tar
guix-2dfbd03a609a5781aa1391639526e9029b01c392.tar.gz
doc: Use a better setuid example.
nmtui does not benefit from being setuid. Oops. * doc/guix.texi (Setuid Programs): Replace network-manager's /bin/nmtui with nfs-utils' /sbin/mount.nfs. Change a @code{} to a @command{}.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 1a78774777..fb2afd9399 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -50,7 +50,7 @@ Copyright @copyright{} 2017, 2021 Christine Lemmer-Webber@*
Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Marius Bakke@*
Copyright @copyright{} 2017, 2019, 2020 Hartmut Goebel@*
Copyright @copyright{} 2017, 2019, 2020, 2021 Maxim Cournoyer@*
-Copyright @copyright{} 2017, 2018, 2019, 2020, 2021 Tobias Geerinckx-Rice@*
+Copyright @copyright{} 2017–2022 Tobias Geerinckx-Rice@*
Copyright @copyright{} 2017 George Clemmer@*
Copyright @copyright{} 2017 Andy Wingo@*
Copyright @copyright{} 2017, 2018, 2019, 2020 Arun Isaac@*
@@ -34077,23 +34077,23 @@ should be setuid root.
The @code{setuid-programs} field of an @code{operating-system}
declaration contains a list of @code{<setuid-program>} denoting the
names of programs to have a setuid or setgid bit set (@pxref{Using the
-Configuration System}). For instance, the @command{nmtui} program,
-which is part of the NetworkManager package, with a setuid root can be
+Configuration System}). For instance, the @command{mount.nfs} program,
+which is part of the nfs-utils package, with a setuid root can be
designated like this:
@example
(setuid-program
- (program (file-append network-manager "/bin/nmtui")))
+ (program (file-append nfs-utils "/sbin/mount.nfs")))
@end example
-And then, to make @code{nmtui} setuid on your system, add the previous
-example to your operating system declaration by appending it to
+And then, to make @command{mount.nfs} setuid on your system, add the
+previous example to your operating system declaration by appending it to
@code{%setuid-programs} like this:
@example
(setuid-programs
(append (list (setuid-program
- (program (file-append network-manager "/bin/nmtui"))))
+ (program (file-append nfs-utils "/sbin/mount.nfs"))))
%setuid-programs))
@end example