<?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: Tracing hosts file entry modification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623849#M377883</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   I have below contents under nsswitch.compat&lt;BR /&gt;&lt;BR /&gt;# An example file that could be copied over to /etc/nsswitch.conf; it&lt;BR /&gt;# uses NIS (YP) in conjunction with files.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;passwd:       compat&lt;BR /&gt;group:        compat&lt;BR /&gt;hosts:        nis [NOTFOUND=return] files&lt;BR /&gt;networks:     nis [NOTFOUND=return] files&lt;BR /&gt;protocols:    nis [NOTFOUND=return] files&lt;BR /&gt;rpc:          nis [NOTFOUND=return] files&lt;BR /&gt;publickey:    nis [NOTFOUND=return] files&lt;BR /&gt;netgroup:     nis [NOTFOUND=return] files&lt;BR /&gt;automount:    files nis&lt;BR /&gt;aliases:      files nis&lt;BR /&gt;services:     nis [NOTFOUND=return] files&lt;BR /&gt;&lt;BR /&gt;Kindly let me know what needs to be done in this file.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Wed, 28 Apr 2010 09:42:37 GMT</pubDate>
    <dc:creator>bharath_hanuma</dc:creator>
    <dc:date>2010-04-28T09:42:37Z</dc:date>
    <item>
      <title>Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623840#M377874</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;   Two days back some of the entries in the host file got deleted. So I need to know how we can trace this so that we can find who has modified the file at that time.&lt;BR /&gt;&lt;BR /&gt;Need your urgent help regarding the same.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Bharath</description>
      <pubDate>Mon, 26 Apr 2010 09:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623840#M377874</guid>
      <dc:creator>bharath_hanuma</dc:creator>
      <dc:date>2010-04-26T09:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623841#M377875</link>
      <description>The obvious answer is a sysadmin modified the file.&lt;BR /&gt;Without auditing, you really can't trace it.&lt;BR /&gt;I suppose you could look to see who login to root at that time or look at the shell history files or possibly anyone who did su or sudo.</description>
      <pubDate>Mon, 26 Apr 2010 09:44:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623841#M377875</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-26T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623842#M377876</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;    Is there any command for checking the same. Also let me know how can I enable audut.log and also how frequently it grows.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Bharath</description>
      <pubDate>Mon, 26 Apr 2010 09:49:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623842#M377876</guid>
      <dc:creator>bharath_hanuma</dc:creator>
      <dc:date>2010-04-26T09:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623843#M377877</link>
      <description>Yo can see the connection entries with "last" and see in syslog.log if any user did a "su - root". With these data you can guess who could do the change. &lt;BR /&gt;To enable auditing you have to convert to "trusted" your system. Yo can do it through SAM. If yo go to the audit zone in SAM it will ask you to convert the system.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Mon, 26 Apr 2010 09:59:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623843#M377877</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-26T09:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623844#M377878</link>
      <description>&amp;gt;Is there any command for checking the same.&lt;BR /&gt;&lt;BR /&gt;Not after the fact, if you don't have auditing or have sudo.&lt;BR /&gt;You can only make some guesses based on the logs.&lt;BR /&gt;&lt;BR /&gt;But it would be far easier just to ask the few sysadmins.</description>
      <pubDate>Mon, 26 Apr 2010 10:10:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623844#M377878</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-26T10:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623845#M377879</link>
      <description>Hi RO/Dennis,&lt;BR /&gt;&lt;BR /&gt;    I have checked through SAM regarding adding it as the trusted system. I would like to know if I add as trusted system, is there any impact on network configuration or reachability to customer systems or there will configuration  changes on systems side.&lt;BR /&gt;&lt;BR /&gt;Kindly need your suggestions or help regarding the same.&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Bharath</description>
      <pubDate>Wed, 28 Apr 2010 05:32:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623845#M377879</guid>
      <dc:creator>bharath_hanuma</dc:creator>
      <dc:date>2010-04-28T05:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623846#M377880</link>
      <description>&amp;gt;I have checked through SAM regarding adding it as the trusted system. I would like to know if I add as trusted system, is there any impact on network configuration or reachability to customer systems or there will configuration changes on systems side.&lt;BR /&gt;&lt;BR /&gt;There shouldn't be.&lt;BR /&gt;You may have users that think they have passwords longer than 8 chars that won't work.&lt;BR /&gt;&lt;BR /&gt;You still need to turn on auditing and that will require careful monitoring of the massive amount of space used.</description>
      <pubDate>Wed, 28 Apr 2010 07:06:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623846#M377880</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-04-28T07:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623847#M377881</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just in case, do not log off root after converting the system. If you have any problem loging into the system as root, you can fix it or even unconvert the system because you are still logged. So, after the conversion, try to log in the system with a new session. &lt;BR /&gt;Be sure that you have these lines right defined in your "/etc/nsswitch.conf":&lt;BR /&gt;&lt;BR /&gt;passwd:       files&lt;BR /&gt;group:        files&lt;BR /&gt;&lt;BR /&gt;instead of:&lt;BR /&gt;&lt;BR /&gt;passwd:       compat&lt;BR /&gt;group:        compat&lt;BR /&gt;&lt;BR /&gt;I have recently converted a system and I couldn't login as root because I had these to lines as "compat".&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2010 07:17:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623847#M377881</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-28T07:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623848#M377882</link>
      <description>hi bharat,&lt;BR /&gt;&lt;BR /&gt;If /etc/nsswitch.conf file not persent, create it by copying from /etc/nsswitch.compat: then make changes</description>
      <pubDate>Wed, 28 Apr 2010 09:31:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623848#M377882</guid>
      <dc:creator>irshad ali</dc:creator>
      <dc:date>2010-04-28T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623849#M377883</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   I have below contents under nsswitch.compat&lt;BR /&gt;&lt;BR /&gt;# An example file that could be copied over to /etc/nsswitch.conf; it&lt;BR /&gt;# uses NIS (YP) in conjunction with files.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;passwd:       compat&lt;BR /&gt;group:        compat&lt;BR /&gt;hosts:        nis [NOTFOUND=return] files&lt;BR /&gt;networks:     nis [NOTFOUND=return] files&lt;BR /&gt;protocols:    nis [NOTFOUND=return] files&lt;BR /&gt;rpc:          nis [NOTFOUND=return] files&lt;BR /&gt;publickey:    nis [NOTFOUND=return] files&lt;BR /&gt;netgroup:     nis [NOTFOUND=return] files&lt;BR /&gt;automount:    files nis&lt;BR /&gt;aliases:      files nis&lt;BR /&gt;services:     nis [NOTFOUND=return] files&lt;BR /&gt;&lt;BR /&gt;Kindly let me know what needs to be done in this file.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2010 09:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623849#M377883</guid>
      <dc:creator>bharath_hanuma</dc:creator>
      <dc:date>2010-04-28T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623850#M377884</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As said, create the file "nsswitch.conf" from "nsswitch.compat":&lt;BR /&gt;&lt;BR /&gt;cd /etc&lt;BR /&gt;cp -p nsswitch.compat nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;Now, replace the lines for passwd and group for the correct ones (with files instead of compat) in file nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 28 Apr 2010 10:34:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623850#M377884</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-28T10:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tracing hosts file entry modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623851#M377885</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Also replace in your newly created nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts:        nis [NOTFOUND=return] files&lt;BR /&gt;&lt;BR /&gt;for something like:&lt;BR /&gt;&lt;BR /&gt;hosts:  files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;If you only use "/etc/hosts" for name resolution, put:&lt;BR /&gt;&lt;BR /&gt;hosts: files&lt;BR /&gt;&lt;BR /&gt;You have to configure this entry depending on how are you doing name resolution.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2010 10:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tracing-hosts-file-entry-modification/m-p/4623851#M377885</guid>
      <dc:creator>R.O.</dc:creator>
      <dc:date>2010-04-28T10:38:29Z</dc:date>
    </item>
  </channel>
</rss>

