README: data dir and config.php permissions
This commit is contained in:
parent
7ea118c64e
commit
2d6d6819e6
1 changed files with 11 additions and 1 deletions
12
README.md
12
README.md
|
|
@ -62,7 +62,17 @@ A small PHP web UI to edit the tinyauth environment file, and to start, stop, re
|
||||||
|
|
||||||
Make sure the `data/` directory is writable by `www-data`, and that it is not inside the web root.
|
Make sure the `data/` directory is writable by `www-data`, and that it is not inside the web root.
|
||||||
|
|
||||||
6. Open the page, log in, and pick the access group. Check the **Permission checks** section.
|
6. **Set file permissions** (as root). PHP runs as `www-data`, so it needs to read the code and config and write `data/`. Pre-create `data/`, because the checkout is usually owned by your own user:
|
||||||
|
|
||||||
|
```
|
||||||
|
install -d -o www-data -g www-data -m 0750 /path/to/tinyauth-web/data
|
||||||
|
chown root:www-data /path/to/tinyauth-web/config.php
|
||||||
|
chmod 640 /path/to/tinyauth-web/config.php
|
||||||
|
```
|
||||||
|
|
||||||
|
`config.php` holds the client secret, so it must not be world-readable.
|
||||||
|
|
||||||
|
7. Open the page, log in, and pick the access group. Check the **Permission checks** section.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue