From 05c640b591aa0ffc2f1dbb59527a46c7e469a26a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 30 Jul 2020 09:15:20 -0400 Subject: [PATCH] #4923: Separate user creation instructions for Ubuntu/CentOS --- docs/installation/3-netbox.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/installation/3-netbox.md b/docs/installation/3-netbox.md index c583d08fe..895e4237f 100644 --- a/docs/installation/3-netbox.md +++ b/docs/installation/3-netbox.md @@ -74,12 +74,18 @@ Checking connectivity... done. Create a system user account named `netbox`. We'll configure the WSGI and HTTP services to run under this account. We'll also assign this user ownership of the media directory. This ensures that NetBox will be able to save local files. -!!! note - CentOS users may need to create the `netbox` group first. +#### Ubuntu + +``` +# adduser --system --group netbox +# chown --recursive netbox /opt/netbox/netbox/media/ +``` + +#### CentOS ``` # groupadd --system netbox -# adduser --system --gid netbox netbox +# adduser --system -g netbox netbox # chown --recursive netbox /opt/netbox/netbox/media/ ```