[tomcat6] In useradd, set daemon shell to nologin

Dave Knox dknox at fedoraproject.org
Fri Mar 4 21:14:24 UTC 2011


commit 8ee466247f9a8302e0047b11014324d1b3d589d1
Author: david knox <dknox at 78-97-42-72.skybeam.com>
Date:   Fri Mar 4 14:09:28 2011 -0700

    In useradd, set daemon shell to nologin

 tomcat6.spec |    7 +++++--
 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 at redhat.com> 0:6.0.32-6
+- In useradd, set tomcat user shell to /sbin/nologin 
+
 * Fri Mar 04 2011 David Knox <dknox at redhat.com> 0:6.0.32-5
 - Fixed typo in tomcat6 init
 


More information about the scm-commits mailing list