<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: /etc/group modified in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632711#M237932</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use the following script in crontab OR create startup script using the following contents:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;current_time_modification=`ls -l /etc/group | awk '{ print $6 $7 $8 }'`&lt;BR /&gt;cksum_size=`cksum /etc/group | awk '{ print $1 " " $2 }'`&lt;BR /&gt;&lt;BR /&gt;i=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while [ $i -eq 1 ]&lt;BR /&gt;do&lt;BR /&gt;        new_time_modification=`ls -l /etc/group | awk '{ print $6 $7 $8 }'`&lt;BR /&gt;        new_cksum_size=`cksum /etc/group | awk '{ print $1 " " $2 }'`&lt;BR /&gt;&lt;BR /&gt;        if [ "$current_time_modification" != "$new_time_modification" ] &amp;amp;&amp;amp; [ "$cksum_size != $new_cksum_size" ]&lt;BR /&gt;        then&lt;BR /&gt;                echo "/etc/group file has been modified"&lt;BR /&gt;&lt;BR /&gt;  # send messgae to /var/adm/syslog/syslog.log&lt;BR /&gt;  /usr/bin/logger -p 5 "Alert: /etc/group file modified"&lt;BR /&gt;&lt;BR /&gt;  # If mail works, uncomment the follwing &amp;amp; replace the test@test.com&lt;BR /&gt;                #echo "/etc/group file has been modified" | mailx -s "Alert: /etc/group file modified" test@test.com&lt;BR /&gt;&lt;BR /&gt;                current_time_modification=$new_time_modification&lt;BR /&gt;                cksum_size=$new_cksum_size&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Sep 2005 23:55:47 GMT</pubDate>
    <dc:creator>VEL_1</dc:creator>
    <dc:date>2005-09-22T23:55:47Z</dc:date>
    <item>
      <title>/etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632704#M237925</link>
      <description>Hello experts!!!&lt;BR /&gt;&lt;BR /&gt;I'm running HP-UX 11i.&lt;BR /&gt;&lt;BR /&gt;I would like to know if is there a way to be alerted every time a file is modified...&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;When /etc/group is modified, an e-mail is sent to me telling me this.&lt;BR /&gt;&lt;BR /&gt;Do you know how can I do it?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot!!!&lt;BR /&gt;&lt;BR /&gt;Rafael M. Braga</description>
      <pubDate>Thu, 22 Sep 2005 12:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632704#M237925</guid>
      <dc:creator>Rafael Mendonça Braga</dc:creator>
      <dc:date>2005-09-22T12:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632705#M237926</link>
      <description>Not possible without some script watching the timestamp and generating an email whenever the modification time changes. For /etc/group, it's easy to know who did it: only root can modify the /etc/group file, so change the root password and don't give it to anybody. Install sudo (so other root users will no longer use su) and now every command issued by a non-root user will be logged.</description>
      <pubDate>Thu, 22 Sep 2005 12:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632705#M237926</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-09-22T12:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632706#M237927</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;tripwire could do this for you. I don't know if the default auditing tool inside HPUX will go that far.&lt;BR /&gt;&lt;BR /&gt;# man -k audit&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.utexas.edu/its/sds/products/tripwire.html" target="_blank"&gt;http://www.utexas.edu/its/sds/products/tripwire.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Thu, 22 Sep 2005 12:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632706#M237927</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-09-22T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632707#M237928</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;I use HIDS ( free Host Intrusion Detection System from HP ) for such things.&lt;BR /&gt;You can write your own simple script, put it on the response directory, to be executed any time the event is rised, so you can i.e. send a mail to your mailbox, etc. I'm using HIDS 2.2 ( think that the version 3.0 was already developed ), I receive an email whenever somebody changes something under /etc/rc.config.d, the passwd or group file, etc or whenever somebody enter a wrong passwd 3 times, &lt;BR /&gt;unsuccesful su's, etc, etc, ok ... I love this tool ;-)&lt;BR /&gt;&lt;BR /&gt;Only an idea ...&lt;BR /&gt;Regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Thu, 22 Sep 2005 12:59:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632707#M237928</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2005-09-22T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632708#M237929</link>
      <description>Just visited software.hp.com, looks like the version 3.1 already exists ( IT world is too fast to me ).&lt;BR /&gt;One of the threats that can detect, as mentioned before:&lt;BR /&gt; &lt;BR /&gt;files &lt;BR /&gt;&lt;BR /&gt;Modification of critical system files and directories &lt;BR /&gt;Creation of world writable files &lt;BR /&gt;Creation and modification of privileged "setuid" files &lt;BR /&gt;File additions and deletions&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUX-HIDS" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUX-HIDS&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;Regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Thu, 22 Sep 2005 13:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632708#M237929</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2005-09-22T13:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632709#M237930</link>
      <description>Hi Rafael ,&lt;BR /&gt;&lt;BR /&gt;Here is a sample script , that will monitor the /etc/group file for any modification. And if modifies it will send an email to you: Can be run through cron.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#########################################&lt;BR /&gt;# Script for checking modification for group file: /etc/group&lt;BR /&gt;# File Name: grpck.sh  Ver:1.0 # Raj.D&lt;BR /&gt;#########################################&lt;BR /&gt;&lt;BR /&gt;i=0&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;ORG_TM_STMP="`ls -l /etc/group | awk '{print $6$7$8}'`"&lt;BR /&gt;TODAYS_TM_STMP="`date | awk '{print $2$3 substr($4,1,5)}'`"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ "$ORG_TM_STMP" = "$TODAYS_TM_STMP" ]&lt;BR /&gt;then&lt;BR /&gt;echo " Alert!!  /etc/group has modified today . !!! at `date` " &amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;i="`expr $i + 1`"&lt;BR /&gt;else&lt;BR /&gt;echo " No problem.. no /etc/group modification ..." &amp;gt; /dev/null &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$i" = "1" ]&lt;BR /&gt;then&lt;BR /&gt;#echo " File /etc/group modified at `date` " | mailx -s "Alert! /etc/group" rafael@your_domain.com&lt;BR /&gt;&lt;BR /&gt;echo " Group file /etc/group modified " &amp;gt; /dev/console&lt;BR /&gt;echo " Email sent to: Rafael MendonÃ§a Braga . "&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ "$ORG_TM_STMP" != "$TODAYS_TM_STMP" ]&lt;BR /&gt;then&lt;BR /&gt;i=0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;#########################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It will check every one minute for any modification , and if happens sends one email for each modification.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Cheers,&lt;BR /&gt;Raj.&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Sep 2005 15:00:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632709#M237930</guid>
      <dc:creator>Raj D.</dc:creator>
      <dc:date>2005-09-22T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632710#M237931</link>
      <description>if you have HP ITO openview ( mostly you may have ), have your monitoring staff modify the OpenView client template with your email need and push it to the server. That will do it.&lt;BR /&gt;&lt;BR /&gt;-Q</description>
      <pubDate>Thu, 22 Sep 2005 16:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632710#M237931</guid>
      <dc:creator>Q4you</dc:creator>
      <dc:date>2005-09-22T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: /etc/group modified</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632711#M237932</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use the following script in crontab OR create startup script using the following contents:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;current_time_modification=`ls -l /etc/group | awk '{ print $6 $7 $8 }'`&lt;BR /&gt;cksum_size=`cksum /etc/group | awk '{ print $1 " " $2 }'`&lt;BR /&gt;&lt;BR /&gt;i=1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;while [ $i -eq 1 ]&lt;BR /&gt;do&lt;BR /&gt;        new_time_modification=`ls -l /etc/group | awk '{ print $6 $7 $8 }'`&lt;BR /&gt;        new_cksum_size=`cksum /etc/group | awk '{ print $1 " " $2 }'`&lt;BR /&gt;&lt;BR /&gt;        if [ "$current_time_modification" != "$new_time_modification" ] &amp;amp;&amp;amp; [ "$cksum_size != $new_cksum_size" ]&lt;BR /&gt;        then&lt;BR /&gt;                echo "/etc/group file has been modified"&lt;BR /&gt;&lt;BR /&gt;  # send messgae to /var/adm/syslog/syslog.log&lt;BR /&gt;  /usr/bin/logger -p 5 "Alert: /etc/group file modified"&lt;BR /&gt;&lt;BR /&gt;  # If mail works, uncomment the follwing &amp;amp; replace the test@test.com&lt;BR /&gt;                #echo "/etc/group file has been modified" | mailx -s "Alert: /etc/group file modified" test@test.com&lt;BR /&gt;&lt;BR /&gt;                current_time_modification=$new_time_modification&lt;BR /&gt;                cksum_size=$new_cksum_size&lt;BR /&gt;        fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Sep 2005 23:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-group-modified/m-p/3632711#M237932</guid>
      <dc:creator>VEL_1</dc:creator>
      <dc:date>2005-09-22T23:55:47Z</dc:date>
    </item>
  </channel>
</rss>

