| Summary: | www/caddy - caddy_logfile permissions change? | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Mike Fisher <mfisher911> | ||||
| Component: | Individual Port(s) | Assignee: | Adam Weinberger <adamw> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | yonas.yanfa | ||||
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(adamw) |
||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Mike Fisher
2024-01-06 15:23:19 UTC
Great catch! Yes, caddy.log absolutely should be owned by whatever caddy is running as. (In reply to Mike Fisher from comment #0) I just ran into this as well. You can change this to "effects many people". A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5c6886afad6f39c5c0a9f8b8ccd16cea8cad8504 commit 5c6886afad6f39c5c0a9f8b8ccd16cea8cad8504 Author: Mike Fisher <mfisher911@gmail.com> AuthorDate: 2024-01-21 13:04:55 +0000 Commit: Adam Weinberger <adamw@FreeBSD.org> CommitDate: 2024-01-21 13:08:10 +0000 www/caddy{,-custom}: chown caddy.log to caddy user/group We have set caddy.log to root:wheel, which works for the default case of running caddy as root. When caddy is run as a non-root users, caddy.log can't actually be written to. Instead, chown caddy.log to the caddy user/group so that it can be written to. PR: 276150 www/caddy-custom/Makefile | 2 +- www/caddy-custom/files/caddy.in | 4 ++-- www/caddy/Makefile | 2 +- www/caddy/files/caddy.in | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) Committed. Thanks, Mike! Again, this was a great catch. |