<?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: System executables found in /etc in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114669#M446748</link>
    <description>Hi Ray:&lt;BR /&gt;&lt;BR /&gt;Pete is correct.  What you see are symbolic links to the executables in '/usr/sbin'.  If you do an 'ls -l' you will clearly see this.&lt;BR /&gt;&lt;BR /&gt;Prior to 10.0, the '/etc' directory did hold executables.  This changed in HP-UX at that point when the filesystem layout was revamped:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5963-8942/5963-8942.pdf" target="_blank"&gt;http://docs.hp.com/en/5963-8942/5963-8942.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since these are symbolic links they don't cause any harm.  Leave things alone.&lt;BR /&gt;&lt;BR /&gt;You can also see that the sticky bit is set on these links:&lt;BR /&gt;&lt;BR /&gt;lr-sr-xr-t   1 root       sys             19 Mar  3 14:22 /etc/vgdisplay -&amp;gt; /usr/sbin/vgdisplay&lt;BR /&gt;&lt;BR /&gt;This further tells you that these are the "t(ransition)" links discussed in the aforementioned document.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Jun 2008 16:44:46 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2008-06-18T16:44:46Z</dc:date>
    <item>
      <title>System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114664#M446743</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;I listed the /etc directory on one of our servers and found system executables in it (ex vgcreate, vgdisplay etc).&lt;BR /&gt;Surprised, I checked on other systems and found the same thing.&lt;BR /&gt;&lt;BR /&gt;Is this a standard practice or does some "normal" process copy the contents of /usr/sbin and /usr/bin into the /etc directory?&lt;BR /&gt;If so, what is the benefit?&lt;BR /&gt;&lt;BR /&gt;I checked a few files and they have identical checksums.  It is safe to delete them from /etc?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Wed, 18 Jun 2008 16:04:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114664#M446743</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-18T16:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114665#M446744</link>
      <description>Are you sure they are the actual executables or are they symlinks to the binaries in /usr/sbin?&lt;BR /&gt;&lt;BR /&gt;The symlinks are there in 11.11 and 11.23. Looks like the transition support for the old location in /etc has finally been removed in 11.31, the symlinks don't exist.</description>
      <pubDate>Wed, 18 Jun 2008 16:15:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114665#M446744</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2008-06-18T16:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114666#M446745</link>
      <description>Ray,&lt;BR /&gt;&lt;BR /&gt;I believe a closer examination will reveal these to be symbolic links to the actual executables in /usr/sbin.  These were transition links put in place when the filesystem layout was revamped from release 9 to release 10 so people could use the /etc/version they were used to.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 18 Jun 2008 16:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114666#M446745</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-06-18T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114667#M446746</link>
      <description>Man... the only executable in /etc that I have is /etc/profile, and that is a script - not a program.&lt;BR /&gt;&lt;BR /&gt;I believe that in the past some sysadmin has decided that he wanted his executables in /etc.&lt;BR /&gt;&lt;BR /&gt;Hopefully, /etc isn't in anyone's path - and so it wouldn't matter.  The bad part here is the possibility of running old versions of admin tools against more newly patched OSs and OS libraries, data structures, etc.&lt;BR /&gt;&lt;BR /&gt;I'd be looking at doing a patch verify to see that all patches verify where their components are.  &lt;BR /&gt;&lt;BR /&gt;Then maybe start doing diffs between any executables in /etc and comparing to real versions out in /sbin, etc.  &lt;BR /&gt;&lt;BR /&gt;After making sure that every executable has a live and presumably correct counterpart, make a directory somewhere with no rwx permissions to it and drop all of the executables there, just for safekeeping in case you need one.&lt;BR /&gt;&lt;BR /&gt;At the same time, I'd be making sure that /etc was not part of anyone's path.  If you find someone (like an admin) that has it, then you've probably found your errant admin.&lt;BR /&gt;&lt;BR /&gt;After cleaning all of this up, I'd try to get "new" versions of everything.  Update to the latest recommended versions of most anything you find in there, and then see if you can force reinstall on top of anything else.&lt;BR /&gt;&lt;BR /&gt;The good news is, whomever did this, did it on other servers (hopefully test servers), so you try this approach on some of them and make sure everything is OK for a while before you hit production servers.  Just get familiar with the common scenario and problems before you tackle production.&lt;BR /&gt;&lt;BR /&gt;Keep in mind that if you need to see a "version" of most any compiled command - you can just run the "what" command on the executable.  It tells you what version the program is, and most of the time, even tells you what version of the libraries were compiled into it.&lt;BR /&gt;&lt;BR /&gt;I think you'll probably be fine, and that this is pretty recoverable, and your servers aren't probably in any danger, especially if commands were merely copied to /etc, and not moved.&lt;BR /&gt;&lt;BR /&gt;Good Luck!&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2008 16:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114667#M446746</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2008-06-18T16:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114668#M446747</link>
      <description>Shalom RayB,&lt;BR /&gt;&lt;BR /&gt;No executable files in my /etc, as Pete said symbolic links, which is not the same thing.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 18 Jun 2008 16:36:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114668#M446747</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-06-18T16:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114669#M446748</link>
      <description>Hi Ray:&lt;BR /&gt;&lt;BR /&gt;Pete is correct.  What you see are symbolic links to the executables in '/usr/sbin'.  If you do an 'ls -l' you will clearly see this.&lt;BR /&gt;&lt;BR /&gt;Prior to 10.0, the '/etc' directory did hold executables.  This changed in HP-UX at that point when the filesystem layout was revamped:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5963-8942/5963-8942.pdf" target="_blank"&gt;http://docs.hp.com/en/5963-8942/5963-8942.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Since these are symbolic links they don't cause any harm.  Leave things alone.&lt;BR /&gt;&lt;BR /&gt;You can also see that the sticky bit is set on these links:&lt;BR /&gt;&lt;BR /&gt;lr-sr-xr-t   1 root       sys             19 Mar  3 14:22 /etc/vgdisplay -&amp;gt; /usr/sbin/vgdisplay&lt;BR /&gt;&lt;BR /&gt;This further tells you that these are the "t(ransition)" links discussed in the aforementioned document.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2008 16:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114669#M446748</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-18T16:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114670#M446749</link>
      <description>You are right.&lt;BR /&gt;There no actual executables and they are all symbolic links.&lt;BR /&gt;&lt;BR /&gt;We are running 11.11.&lt;BR /&gt;Is there any benefit or danger to removing them besides avoiding future confusion?&lt;BR /&gt;&lt;BR /&gt;Thanks again RayB</description>
      <pubDate>Wed, 18 Jun 2008 16:50:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114670#M446749</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-18T16:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114671#M446750</link>
      <description>Hi (again) Ray:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there any benefit or danger to removing them besides avoiding future confusion?&lt;BR /&gt;&lt;BR /&gt;There is no benefit in removing them.&lt;BR /&gt;&lt;BR /&gt;If you do, you run a remote (?) risk that some software may reference the link in lieu of the executable directly.  In that case the software would not behave as expected.&lt;BR /&gt;&lt;BR /&gt;Since you are now enlightened, what possible "future confusion" would there be?!?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 18 Jun 2008 16:58:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114671#M446750</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-18T16:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114672#M446751</link>
      <description>I doubt removing them would do you any good, because they will come back the next time you install a patch.  The last steps of swinstall re-create the transition links IIRC, a wasted step that could well be eliminated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 18 Jun 2008 16:58:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114672#M446751</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2008-06-18T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114673#M446752</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Oh, and since they are transition links, as I noted, the next installation of software that causes 'tlinstall' to run will put them back again!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 18 Jun 2008 16:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114673#M446752</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-18T16:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114674#M446753</link>
      <description>&amp;gt; Is there any benefit or danger to removing them besides avoiding future confusion?&lt;BR /&gt;&lt;BR /&gt;benefit? no (well you'll be saving some file entries and space in your filesystem which is minimal)&lt;BR /&gt;&lt;BR /&gt;danger? maybe. If HP did not remove them I would not remove them either. There is always the possibility that burried somewhere else in the system one of these commands is reffered to by the /etc/ path as opposed to by the /usr/sbin path. HP were saying that these would be removed at 11.00 but they waited until 11.31.&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2008 17:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114674#M446753</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-06-18T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114675#M446754</link>
      <description>Good,&lt;BR /&gt;I will leave things as they are.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;RayB</description>
      <pubDate>Wed, 18 Jun 2008 17:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114675#M446754</guid>
      <dc:creator>Raynald Boucher</dc:creator>
      <dc:date>2008-06-18T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114676#M446755</link>
      <description>&amp;gt;It is safe to delete them from /etc?&lt;BR /&gt;&lt;BR /&gt;This will just upset swverify.  ;-)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;TwoProc: /etc/profile, and that is a script - not a program.&lt;BR /&gt;&lt;BR /&gt;Actually it doesn't have to be executable since it is sourced by the shell.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;JRF: You can also see that the sticky bit is set on these links:&lt;BR /&gt;&lt;BR /&gt;Tlinks are replaced by regular symlinks on 11.31.</description>
      <pubDate>Wed, 18 Jun 2008 17:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114676#M446755</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-18T17:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: System executables found in /etc</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114677#M446756</link>
      <description>&amp;gt;TTr: HP were saying that these would be removed at 11.00 but they waited until 11.31.&lt;BR /&gt;&lt;BR /&gt;No, on 11.31, they made them permanent, with only a few removed.</description>
      <pubDate>Wed, 18 Jun 2008 17:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-executables-found-in-etc/m-p/5114677#M446756</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-18T17:18:21Z</dc:date>
    </item>
  </channel>
</rss>

