Skip to content

Commit

Permalink
Updated install document - Corrected chmod command examples. (Ylianst…
Browse files Browse the repository at this point in the history
  • Loading branch information
Attocode1 authored Apr 18, 2024
1 parent 832e618 commit 18b731f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/install/install2.md
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ The last line will run MeshCentral manually and allow it to install any missing

```
sudo chown -R meshcentral:meshcentral /opt/meshcentral
sudo chmod 755 –R /opt/meshcentral/meshcentral-*
sudo chmod -R 755 /opt/meshcentral/meshcentral-*
```

To make this work, you will need to make MeshCentral work with MongoDB because the /meshcentral-data folder will be read-only. In addition, MeshCentral will not be able to update itself since the account does not have write access to the /node_modules files, so the update will have to be manual. First used systemctl to stop the MeshCentral server process, than use this:
Expand All @@ -912,15 +912,15 @@ This will perform the update to the latest server on NPM and re-set the permissi
MeshCentral allows users to upload and download files stores in the server’s `meshcentral-files` folder. In an increased security setup, we still want the server to be able to read and write files to this folder and we can allow this with:

```
sudo chmod 755 –R /opt/meshcentral/meshcentral-files
sudo chmod -R 755 /opt/meshcentral/meshcentral-files
```

If you plan on using the increased security installation along with MeshCentral built-in Let’s Encrypt support you will need to type the following commands to make the `letsencrypt` folder in `meshcentral-data` writable.

```
sudo mkdir /opt/meshcentral/meshcentral-data
sudo mkdir /opt/meshcentral/meshcentral-data/letsencrypt
sudo chmod 755 –R /opt/meshcentral/meshcentral-data/letsencrypt
sudo chmod -R 755 /opt/meshcentral/meshcentral-data/letsencrypt
```

This will allow the server to get and periodically update its Let’s Encrypt certificate. If this is not done, the server will generate an `ACCES: permission denied` exception.
Expand Down

0 comments on commit 18b731f

Please sign in to comment.