From 4f7fa609b4b270bf22bf1c877d904d4d23cace8a Mon Sep 17 00:00:00 2001 From: John Dennis Date: Thu, 13 Dec 2012 12:11:47 -0500 Subject: [PATCH] - specify homedir (/var/lib/radiusd) for radiusd user in useradd, do not permit useradd to default the homedir. --- freeradius.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/freeradius.spec b/freeradius.spec index 802c81d..b6fd93e 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -1,7 +1,7 @@ Summary: High-performance and highly configurable free RADIUS server Name: freeradius Version: 2.2.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ Group: System Environment/Daemons URL: http://www.freeradius.org/ @@ -263,7 +263,7 @@ EOF # Make sure our user/group is present prior to any package or subpackage installation %pre getent group radiusd >/dev/null || /usr/sbin/groupadd -r -g 95 radiusd > /dev/null 2>&1 -getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -s /sbin/nologin radiusd > /dev/null 2>&1 +getent passwd radiusd >/dev/null || /usr/sbin/useradd -r -g radiusd -u 95 -c "radiusd user" -d %{_localstatedir}/lib/radiusd -s /sbin/nologin radiusd > /dev/null 2>&1 exit 0 %post @@ -608,6 +608,10 @@ exit 0 %{_libdir}/freeradius/rlm_sql_unixodbc-%{version}.so %changelog +* Thu Dec 13 2012 John Dennis - 2.2.0-3 +- specify homedir (/var/lib/radiusd) for radiusd user in useradd, + do not permit useradd to default the homedir. + * Wed Dec 12 2012 John Dennis - 2.2.0-2 - add security options to compiler/linker