From 2d8a89563d3cc9be4564c927d2df2317ce758ef8 Mon Sep 17 00:00:00 2001 From: "Justin R. Cutler" Date: Mon, 9 Dec 2019 14:20:09 -0500 Subject: [PATCH] Correct port range for cap_net_bind_service (#9306) --- docs/content/doc/usage/command-line.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/usage/command-line.en-us.md b/docs/content/doc/usage/command-line.en-us.md index 1bfaf8119..6b0cfae3b 100644 --- a/docs/content/doc/usage/command-line.en-us.md +++ b/docs/content/doc/usage/command-line.en-us.md @@ -46,7 +46,7 @@ Starts the server: - `gitea web --port 80` - `gitea web --config /etc/gitea.ini --pid /var/run/gitea.pid` - Notes: - - Gitea should not be run as root. To bind to a port below 1000, you can use setcap on + - Gitea should not be run as root. To bind to a port below 1024, you can use setcap on Linux: `sudo setcap 'cap_net_bind_service=+ep' /path/to/gitea`. This will need to be redone every time you update Gitea.