Snort mailing list archives

[PATCH] useradd -r in snort.spec


From: Filippo Carletti <filippo.carletti () gmail com>
Date: Wed, 13 May 2015 11:53:51 +0200

Hello, I've a patch for the snort-2.9.7 specfile on CentOS 6.

During snort installation, a snort user is created automatically to
own some dirs.
Usually rpm packages add users with useradd -r, to create system
users, with uid < 500

See http://dev.nethserver.org/issues/3163 for details.

%pre
# Don't do all this stuff if we are upgrading
if [ $1 = 1 ] ; then
- /usr/sbin/groupadd snort 2> /dev/null || true
- /usr/sbin/useradd -M -d %{_var}/log/snort -s %{noShell} -c "Snort"
-g snort snort 2>/dev/null || true
+ /usr/sbin/groupadd -r snort 2> /dev/null || true
+ /usr/sbin/useradd -r -M -d %{_var}/log/snort -s %{noShell} -c
"Snort" -g snort snort 2>/dev/null || true
fi
%post
# Make a symlink if there is no link for snort-plain


Other patches we submitted in the past were not commented:
https://github.com/nethesis/snort
Would you like to review them and suggest modifications?

Thank you.

-- 
Ciao,
Filippo

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!


Current thread: