Bug 1023370 - ddclient rpm should use stable uids
Summary: ddclient rpm should use stable uids
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: ddclient
Version: el5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-25 09:48 UTC by Nuno Fernandes
Modified: 2017-04-06 10:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-06 10:04:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nuno Fernandes 2013-10-25 09:48:14 UTC
Description of problem:
ddclient user is created using useradd and groupadd without specifying numeric ids/gids. It should use stable and defined uids.

Version-Release number of selected component (if applicable):
ddclient-3.8.1-1.el5.noarch.rpm

How reproducible:
Allways

Steps to Reproduce:
1. In a workstation install ddclient
2. In another workstation with a different set of users also install ddclient
3. The chosen uid/gid is not the same

Actual results:
chosen uid/gid is not the same

Expected results:
They should be the same.

Additional info:
I think the solution would be to change preinstall scriptlet from:

getent group ddclient > /dev/null || /usr/sbin/groupadd -r ddclient
getent passwd ddclient > /dev/null || /usr/sbin/useradd -r -g ddclient -d /var/cache/ddclient -s /sbin/nologin -c "Dynamic DNS Client" ddclient

to 

getent group ddclient > /dev/null || /usr/sbin/groupadd -g SOMEGID -r ddclient
getent passwd ddclient > /dev/null || /usr/sbin/useradd -r -g ddclient -d /var/cache/ddclient -s /sbin/nologin -c "Dynamic DNS Client" ddclient -u SOMEID

Comment 1 Robert Scheck 2013-12-25 21:03:14 UTC
AFAIK there is no concept in Fedora anymore for registering specific UIDs/GIDs
like fedora-usermgmt in previous times. Additionally the -r parameter is doing
its job IMHO.

Comment 2 Fedora End Of Life 2017-04-06 10:04:35 UTC
Fedora EPEL 5 changed to end-of-life (EOL) status on 2017-03-31. Fedora EPEL 5
is no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora
or Fedora EPEL, please feel free to reopen this bug against that version. If
you are unable to reopen this bug, please file a new report against the current
release. If you experience problems, please add a comment to this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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