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
This commit is contained in:
jtagcat 2021-10-02 18:39:31 +00:00
parent 24088f8307
commit 632ca2ef52

View file

@ -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