Bug 478785 - installation of newscache does not create the "news" user and group
Summary: installation of newscache does not create the "news" user and group
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: newscache
Version: 10
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Dmitry Butskoy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-05 00:44 UTC by Chun-Chung Chen
Modified: 2009-01-07 09:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-07 09:10:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Chun-Chung Chen 2009-01-05 00:44:14 UTC
The pre installing script of newscache-1.2-0.6.rc6.fc9 (which is in Fedora 10 and rawhide) does not create the "news" user and group. Since the default /etc/passwd of Fedora 10 does not include the "news" account and the newscache run under the uid and gid of "news", this prevent it from starting properly.

Something similar to the following code (borrowed from inn.spec) should be add to the %pre section of newscache.spec:

> getent group news >/dev/null || groupadd -r news
> getent passwd news >/dev/null || \
> useradd -r -g news -d /etc/news -s /sbin/nologin \
> -c "News server user" news

PS. Without the "news" account, newscache will hang or segfault which could be another bug by itself.

Comment 1 Fedora Update System 2009-01-05 14:43:14 UTC
newscache-1.2-0.7.rc6.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/newscache-1.2-0.7.rc6.fc10

Comment 2 Fedora Update System 2009-01-07 09:10:11 UTC
newscache-1.2-0.7.rc6.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.