docs: suggest recursive chmod

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-07-13 22:15:16 -04:00
parent bacffd6174
commit bdd5845490

View file

@ -23,7 +23,7 @@ Otherwise, follow standard Rust project build guides (installing git and cloning
While conduwuit can run as any user it is better to use dedicated users for different services. This also allows While conduwuit can run as any user it is better to use dedicated users for different services. This also allows
you to make sure that the file permissions are correctly set up. you to make sure that the file permissions are correctly set up.
In Debian or RHEL, you can use this command to create a conduwuit user: In Debian or Fedora/RHEL, you can use this command to create a conduwuit user:
```bash ```bash
sudo adduser --system conduwuit --group --disabled-login --no-create-home sudo adduser --system conduwuit --group --disabled-login --no-create-home
@ -53,13 +53,11 @@ RocksDB is the only supported database backend.
## Setting the correct file permissions ## Setting the correct file permissions
If you are using a dedicated user for conduwuit, you will need to allow it to read the config. To do that you can run this command on If you are using a dedicated user for conduwuit, you will need to allow it to read the config. To do that you can run this:
Debian or RHEL:
```bash ```bash
sudo chown -R root:root /etc/conduwuit sudo chown -R root:root /etc/conduwuit
sudo chmod 755 /etc/conduwuit sudo chmod -R 755 /etc/conduwuit
``` ```
If you use the default database path you also need to run this: If you use the default database path you also need to run this: