Skip to content

Commit

Permalink
init: Fix configuration permissions in systemd integration. (#2130)
Browse files Browse the repository at this point in the history
This fixes the permissions on /etc/caddy to match standard linux
permissions for /etc, and makes the Caddyfile read-only for the caddy
user.
  • Loading branch information
smlx authored and mholt committed Jun 19, 2018
1 parent 6965075 commit e263566
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/init/linux-systemd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sudo useradd \
--system --uid 33 www-data

sudo mkdir /etc/caddy
sudo chown -R root:www-data /etc/caddy
sudo chown -R root:root /etc/caddy
sudo mkdir /etc/ssl/caddy
sudo chown -R root:www-data /etc/ssl/caddy
sudo chmod 0770 /etc/ssl/caddy
Expand All @@ -55,8 +55,8 @@ and give it appropriate ownership and permissions:

```bash
sudo cp /path/to/Caddyfile /etc/caddy/
sudo chown www-data:www-data /etc/caddy/Caddyfile
sudo chmod 444 /etc/caddy/Caddyfile
sudo chown root:root /etc/caddy/Caddyfile
sudo chmod 644 /etc/caddy/Caddyfile
```

Create the home directory for the server and give it appropriate ownership
Expand Down

0 comments on commit e263566

Please sign in to comment.