From 632ca2ef52ada1c55c7ecfcc5ab0d286bad3decc Mon Sep 17 00:00:00 2001 From: jtagcat Date: Sat, 2 Oct 2021 18:39:31 +0000 Subject: [PATCH] docs/example: useradd: restic now system account and: use /sbin/nologin and: use long flags in the useradd command and: download v0.12.1 instead of v0.9.6 --- doc/080_examples.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/080_examples.rst b/doc/080_examples.rst index cc3328741..5aa10be24 100644 --- a/doc/080_examples.rst +++ b/doc/080_examples.rst @@ -309,7 +309,7 @@ the backups: .. code-block:: console - root@a3e580b6369d:/# useradd -m restic + root@a3e580b6369d:/# useradd --system --create-home --shell /sbin/nologin restic Then we download and install the restic binary into the user's home directory (please adjust the URL to refer to the latest restic version). @@ -317,7 +317,7 @@ directory (please adjust the URL to refer to the latest restic version). .. code-block:: console root@a3e580b6369d:/# mkdir ~restic/bin - root@a3e580b6369d:/# curl -L https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2 | bunzip2 > ~restic/bin/restic + root@a3e580b6369d:/# curl -L https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_linux_amd64.bz2 | bunzip2 > ~restic/bin/restic Before we assign any special capability to the restic binary we restrict its permissions so that only root and the newly created