From 0a2386cc62cab7f9a8f2dca2b466be7f2e5af030 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 7 Mar 2006 17:40:13 +0000 Subject: [PATCH] wrong wrong wrong. use an assigned uid (66) and gid (65). (gid 66 is wine) (#175434) --- tog-pegasus.spec | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/tog-pegasus.spec b/tog-pegasus.spec index a6a1e09..7397d59 100644 --- a/tog-pegasus.spec +++ b/tog-pegasus.spec @@ -15,7 +15,7 @@ Summary: OpenPegasus WBEM Services for Linux Name: tog-pegasus Version: 2.5 -Release: 6.1 +Release: 7 Epoch: 2 Group: Systems Management/Base License: Open Group Pegasus Open Source @@ -204,24 +204,9 @@ if [ $1 -gt 1 ]; then elif [ $1 -eq 1 ]; then # first install: create the 'pegasus' user and group: # By default, ONLY the "pegasus" user will be allowed to connect to cimserver over network - if ! /usr/bin/id pegasus >/dev/null 2>&1; then - for((uid=466; uid<500; uid++)) - do - if /usr/sbin/groupadd pegasus -g $uid >/dev/null 2>&1 && - /usr/sbin/useradd -u $uid -c "tog-pegasus OpenPegasus WBEM/CIM services" -g pegasus -s /sbin/nologin -r -d /var/lib/Pegasus pegasus >/dev/null 2>&1; then - break; - else - if egrep -q '^pegasus:.*:'$uid':' /etc/group; then - groupdel pegasus >/dev/null 2>&1; - fi; - if [ $uid -eq 499 ]; then - uid=100; - elif [ $uid -eq 465 ]; then - break; - fi; - fi; - done; - fi; + /usr/sbin/groupadd pegasus -g 65 >/dev/null 2>&1 || :; + /usr/sbin/useradd -u 66 -c "tog-pegasus OpenPegasus WBEM/CIM services" -g pegasus \ + -s /sbin/nologin -r -d /var/lib/Pegasus pegasus >/dev/null 2>&1 || :; fi %post @@ -254,6 +239,9 @@ rm -rf $RPM_BUILD_ROOT; #rm -rf ${RPM_BUILD_DIR}/%{srcname}-%{version}; %changelog +* Tue Mar 7 2006 Bill Nottingham - 2:2.5-7 +- use an assigned uid/gid, do not loop over user ids looking for a free one + * Fri Feb 10 2006 Jesse Keating - 2:2.5-6.1 - bump again for double-long bug on ppc(64)