FS#45398 - [ngircd] service should run daemon as non-root

Attached to Project: Community Packages
Opened by Ramana Kumar (xrchz) - Saturday, 20 June 2015, 10:09 GMT
Last edited by Toolybird (Toolybird) - Saturday, 01 April 2023, 00:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Kyle Keen (keenerd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: the systemd service that comes with the ngircd package runs the daemon as root, but the daemon says:
ServerUID must not be root(0), using "nobody" instead.
Running as user nobody(99), group nobody(99), with PID 30557.

This causes problems when trying to reload the service, because it cannot read the configuration file (which by default is owned by root). I think the service should run the daemon as a different user, maybe a user specifically for this purpose (and the configuration file permissions should be set accordingly).
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 01 April 2023, 00:38 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Pkg dropped to AUR
Comment by Kyle Keen (keenerd) - Saturday, 20 June 2015, 11:35 GMT
ngircd.conf provides the ServerGID and ServerUID fields for lowering permissions. You may also change the permissions on ngircd.conf, and pacman will preserve that.
Comment by Ramana Kumar (xrchz) - Saturday, 20 June 2015, 11:42 GMT
Thanks for the quick reply!

I think that solves my issue, thanks.

I do think the package could provide a better default (e.g., set up a user and set those configuration options), but I leave that to your discretion.
Comment by Eli Schwartz (eschwartz) - Sunday, 13 August 2017, 22:45 GMT
keenerd -- any plans to resolve ths bug by setting better defaults?

Loading...