-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KiwiIRC runs as root #3
Comments
I changed the line to be but I have no idea if this is portable to different distributions. |
(it should also be noted that you need to have root access to create ports < 1000, I am using this with "regular" webserver in front of it) |
*1024 A lot of people do have this running on port 80/443 by default which either root is needed or some distros support I'm not entirely sure what the best way of handling all these cases are short of creating a package for each and every distro out there. |
there appear to be only shitty options to solve this.
Feel free to close this, but I still think this should be documented somewhere. |
Systemd has a solution for the port binding, see for example here: https://github.com/mholt/caddy/blob/master/dist/init/linux-systemd/caddy.service#L43 Using setcap is considered harmful. |
@mestaritonttu any more info on why setcap is harmful? |
Only this, like we discussed on IRC: caddyserver/caddy#528 (comment) |
I don't believe it is a good idea to have this thing run as root user, it is defined here:
kiwiirc_packager/scripts/init/webircgateway
Line 14 in 9918b5b
but never actually used anywhere. It would probably need to be referenced here:
kiwiirc_packager/scripts/init/webircgateway
Line 45 in 9918b5b
Other choices would be:
www-data
orhttpd
which are usually available on systems with http servers like apache or nginx;irc
which is usually present on servers that run an ircd.The text was updated successfully, but these errors were encountered: