From 88f29aaa9f5d469b52dbd3042e574af4b0f4d024 Mon Sep 17 00:00:00 2001 From: LittleVulpix Date: Mon, 11 Jul 2016 11:34:32 +0200 Subject: [PATCH] Documentation: SysVInit workaround for <1024 ports Update the manual to provide a command necessary to open <1024 ports for users on SysVinit --- other/bootstrap_daemon/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/other/bootstrap_daemon/README.md b/other/bootstrap_daemon/README.md index 93e390ef..7100ec65 100644 --- a/other/bootstrap_daemon/README.md +++ b/other/bootstrap_daemon/README.md @@ -142,6 +142,11 @@ Go over everything in the copied `tox-bootstrapd.conf` file. Set options you wan Look at the variable declarations in the beginning of `tox-bootstrapd.sh` init script to see if you need to change anything for it to work on your system. The default values must be fine for most users and we assume that you use those next. +If you have configured the daemon to use any port numbers that are lower than 1024, you need to execute the command below, as by default non-privileged users cannot open ports <1024. The change persists through reboot: +```sh +sudo setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/tox-bootstrapd +``` + Copy `tox-bootstrapd.sh` init script to `/etc/init.d/tox-bootstrapd` (note the disappearance of ".sh" ending): ```sh sudo cp tox-bootstrapd.sh /etc/init.d/tox-bootstrapd