From a21478479bd17a515662586b029ef6ac443f3ca4 Mon Sep 17 00:00:00 2001 From: pg9182 <96569817+pg9182@users.noreply.github.com> Date: Wed, 7 Dec 2022 23:00:50 -0500 Subject: docs: Use systemd-sysusers --- docs/PRODUCTION.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/PRODUCTION.md b/docs/PRODUCTION.md index dfb70e5..a44a891 100644 --- a/docs/PRODUCTION.md +++ b/docs/PRODUCTION.md @@ -50,8 +50,15 @@ This document describes the recommended setup for an non-containerized Atlas ser 4. Set up the Atlas service user and group. ```bash - # create the user/group - sudo useradd --system --shell /usr/sbin/nologin --home-dir /var/lib/atlas atlas + sudo nano /etc/sysusers.d/atlas.conf + ``` + + ``` + u atlas - "Atlas" /var/lib/atlas /usr/sbin/nologin + ``` + + ```bash + sudo systemd-sysusers ``` ```bash -- cgit v1.2.3