Explorar el Código

suggest 0700 permissions for the role user homedir

tags/v2.6.0-rc1
Shivaram Lingamneni hace 3 años
padre
commit
dc4214a8ca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      docs/MANUAL.md

+ 1
- 1
docs/MANUAL.md Ver fichero

@@ -180,7 +180,7 @@ The recommended way to operate oragono as a service on Linux is via systemd. Thi
180 180
 
181 181
 The only major distribution that currently packages Oragono is Arch Linux; the aforementioned AUR package includes a systemd unit file. However, it should be fairly straightforward to set up a productionized Oragono on any Linux distribution. Here's a quickstart guide for Debian/Ubuntu:
182 182
 
183
-1. Create a dedicated, unprivileged role user who will own the oragono process and all its associated files: `adduser --system --group oragono`. This user now has a home directory at `/home/oragono`.
183
+1. Create a dedicated, unprivileged role user who will own the oragono process and all its associated files: `adduser --system --group oragono`. This user now has a home directory at `/home/oragono`. To prevent other users from viewing Oragono's configuration file, database, and certificates, restrict the permissions on the home directory: `chmod 0700 /home/oragono`.
184 184
 1. Copy the executable binary `oragono`, the config file `ircd.yaml`, the database `ircd.db`, and the self-signed TLS certificate (`fullchain.pem` and `privkey.pem`) to `/home/oragono`. (If you don't have an `ircd.db`, it will be auto-created as `/home/oragono/ircd.db` on first launch.) Ensure that they are all owned by the new oragono role user: `sudo chown oragono:oragono /home/oragono/*`. Ensure that the configuration file logs to stderr.
185 185
 1. Install our example [oragono.service](https://github.com/oragono/oragono/blob/master/distrib/systemd/oragono.service) file to `/etc/systemd/system/oragono.service`.
186 186
 1. Enable and start the new service with the following commands:

Loading…
Cancelar
Guardar