Bug 527943 - useradd should be called with specific uid under 500
Summary: useradd should be called with specific uid under 500
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cacti
Version: el5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mike McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-08 10:46 UTC by Petr Lautrbach
Modified: 2009-10-08 13:02 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-10-08 13:02:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Lautrbach 2009-10-08 10:46:38 UTC
Description of problem:
There is calling useradd without specific UID in spec file 

Suggested fix:
- %{_sbindir}/useradd -d %{_datadir}/%{name} -r -s /sbin/nologin cacti 2> /dev/null || :
+ getent group cacti >/dev/null || groupadd -r cacti -g 452
+ getent passwd cacti >/dev/null || useradd -g cacti -u 452 -d ${_datadir}/%{name} -r -s /sbin/nologin cacti 2> /dev/null || :


UID 452 for cacti is already used in Red Hat HPC product.


Version-Release number of selected component (if applicable):
cacti-0.8.7e-1




Expected results:


Additional info:

Comment 1 Mike McGrath 2009-10-08 13:02:09 UTC
It's acceptable to use -r last I checked.  This is because there are over 500 packages that create accounts.  not all of them can use static IDs.


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