I need run inn as a normal user to test an NNTP client. I have my own directory with configuration, spool, database, logs etc. If I start $ INNCONF=/tmp/t/etc/inn.conf /usr/libexec/news/innd -d from inn-2.6.0-4.fc25.x86_64, it segfaults in newsuser.c:98: ensure_news_grp(bool may_setgid) { gid_t gid; get_news_uid_gid(false, &gid, true); if (may_setgid && geteuid() == 0) { if (setgid(gid) < 0) { sysdie("failed to setgid"); } } if (getegid() != gid || getgid() != gid) { → die ("must be run as %s group", innconf->runasgroup); } } It crashes because innconf variable is NULL and this is because innd calls ensure_news_grp() via ensure_news_user_grp() before reading a configuration with innconf_read() in main(). The issue is that the target user and group is defined in the configuration file. The get_news_uid_gid() default to hard-coded "news" group if configuration is not yet loaded. Would it be possible to modify innd so that it first reads condfiguration, and then it tries to change UID and GID?
*** Bug 1416951 has been marked as a duplicate of this bug. ***
Sorry for the long delay. I managed to reproduce and reported upstream. Thanks.
This is fixed in 2.6.1 (currently in rawhide). I'll build 2.6.1 for stable releases soon.
inn-2.6.1-3.fc24 inn-2.6.1-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-0a04196fd1
inn-2.6.1-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-61f63409ea
inn-2.6.1-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-0a04196fd1
inn-2.6.1-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-61f63409ea
inn-2.6.1-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
inn-2.6.1-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.