summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid knox <dknox@78-97-42-72.skybeam.com>2011-03-04 14:09:28 -0700
committerdavid knox <dknox@78-97-42-72.skybeam.com>2011-03-04 14:09:28 -0700
commit8ee466247f9a8302e0047b11014324d1b3d589d1 (patch)
tree6e819a60adca5010e6a91054757cbec869d037e5
parent6a7af86dadcf65752e06fd624d6f67a35209b901 (diff)
downloadtomcat-8ee466247f9a8302e0047b11014324d1b3d589d1.tar.gz
tomcat-8ee466247f9a8302e0047b11014324d1b3d589d1.tar.xz
tomcat-8ee466247f9a8302e0047b11014324d1b3d589d1.zip
In useradd, set daemon shell to nologin
-rw-r--r--tomcat6.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/tomcat6.spec b/tomcat6.spec
index 4e00a8c..a9ce551 100644
--- a/tomcat6.spec
+++ b/tomcat6.spec
@@ -53,7 +53,7 @@
Name: tomcat6
Epoch: 0
Version: %{major_version}.%{minor_version}.%{micro_version}
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
Group: Networking/Daemons
@@ -405,7 +405,7 @@ done
# add the tomcat user and group
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
- -s /bin/sh -r -d %{homedir} tomcat 2>/dev/null || :
+ -s /bin/nologin -r -d %{homedir} tomcat 2>/dev/null || :
# Save the conf, app, and lib dirs
# due to rbgz 640686. Copy them to the _tmppath so we don't pollute
# the tomcat file structure
@@ -566,6 +566,9 @@ fi
%{appdir}/sample
%changelog
+* Fri Mar 04 2011 David Knox <dknox@redhat.com> 0:6.0.32-6
+- In useradd, set tomcat user shell to /sbin/nologin
+
* Fri Mar 04 2011 David Knox <dknox@redhat.com> 0:6.0.32-5
- Fixed typo in tomcat6 init