<?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 Files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734220#M753261</link>
    <description>James,&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tlinstall &lt;BR /&gt;&lt;BR /&gt;Would the above command have any negative effects if executed on a production server? And does it involve having to restart the system?</description>
    <pubDate>Fri, 31 May 2002 00:29:02 GMT</pubDate>
    <dc:creator>Marvyn Torres</dc:creator>
    <dc:date>2002-05-31T00:29:02Z</dc:date>
    <item>
      <title>System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734214#M753255</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Would somebody please be kind enough to provide me with information on the following:&lt;BR /&gt;1. What are the prime system configuration files that need protecting and what should their appropriate permissions be?&lt;BR /&gt;2. What are the baseline SUID and SGID files that should exist in a system? (OS only)&lt;BR /&gt;&lt;BR /&gt;Thanks!!&lt;BR /&gt;</description>
      <pubDate>Thu, 30 May 2002 08:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734214#M753255</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-05-30T08:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734215#M753256</link>
      <description>Hi&lt;BR /&gt;there is no one of few important file, there is many.&lt;BR /&gt;Usually You shold not change a permition to system files, because it can cause problems with system. About SUID'ed file. In system if suide'd file is a binary file it is oki, because using it for danger operation require a bit of knowledge, but if this is a text script it is dangerous because it can be edited in easy way. So my advise is to use find command to find all files with bit s set and check what kind of file it is. Try to use:&lt;BR /&gt;find / \( -perm ???04000 ???o ???perm ???02000  \) -exec ls -ld {} \;&lt;BR /&gt;&lt;BR /&gt;hope it help</description>
      <pubDate>Thu, 30 May 2002 08:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734215#M753256</guid>
      <dc:creator>Sebastian Galeski_1</dc:creator>
      <dc:date>2002-05-30T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734216#M753257</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Center for Internet Security has a HP-UX security benchmark for HP-UX 10.20, HP-UX 11.00 and HP-UX 11.11:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cisecurity.org/bench_HPUX.html" target="_blank"&gt;http://www.cisecurity.org/bench_HPUX.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;This benchmark comprises a list of hardening rules. As far as I recall, the SGID/SUID and file permission issues are addressed there as well.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 30 May 2002 08:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734216#M753257</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-05-30T08:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734217#M753258</link>
      <description>&lt;BR /&gt;All the correct permissions for all files installed using software distributor are kept on the system. So, if youre after the correct permissions for all the OS files then you can list all files which belong to the OS-Core bundle (and all its filesets) and their correct permissions with the following command;&lt;BR /&gt;&lt;BR /&gt;swlist -l file -a mode OS-Core | more&lt;BR /&gt;&lt;BR /&gt;You could take the output from this, put it into a file and run a script on it to check that the permissions currently set what theyre supposed to be, or set them.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 30 May 2002 08:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734217#M753258</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-05-30T08:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734218#M753259</link>
      <description>Hey Steve,&lt;BR /&gt;&lt;BR /&gt;Tried running the hp_checkperms tool from the CIS HP Benchmark. But when I executed it I got the following message:&lt;BR /&gt;&lt;BR /&gt;#./hp_checkperms&lt;BR /&gt;script interpreter "/bin/sh" not found&lt;BR /&gt;script interpreter link resolves to "/usr/bin/sh"&lt;BR /&gt;sh: ./hp_checkperms not found.&lt;BR /&gt;&lt;BR /&gt;Is there any (easy) way to resolve this????</description>
      <pubDate>Fri, 31 May 2002 00:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734218#M753259</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-05-31T00:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734219#M753260</link>
      <description>Hi Marvyn:&lt;BR /&gt;&lt;BR /&gt;It sounds like you don't have (or have lost) your "transltion links".  These are a set of standard soft (symbolic) links that appeared when the HP-UX filesystem layouts were changed during the 9.x to 10.x evolution.&lt;BR /&gt;&lt;BR /&gt;'/bin' is really a link to 'usr/bin' and 'lib' is really (only) a link to 'usr/lib'.&lt;BR /&gt;&lt;BR /&gt;You can reinstall any missing links with:&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tlinstall &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 00:14:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734219#M753260</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T00:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734220#M753261</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;# /opt/upgrade/bin/tlinstall &lt;BR /&gt;&lt;BR /&gt;Would the above command have any negative effects if executed on a production server? And does it involve having to restart the system?</description>
      <pubDate>Fri, 31 May 2002 00:29:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734220#M753261</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-05-31T00:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734221#M753262</link>
      <description>Hi Marvyn:&lt;BR /&gt;&lt;BR /&gt;No, and No.  The command takes about 20-30 seconds to run and has no adverse effects.  The overhead is to search filesystems and create the transition symbolic links.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 May 2002 00:32:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734221#M753262</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T00:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734222#M753263</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Oops! Tried the command but I'm still getting the same message.&lt;BR /&gt;&lt;BR /&gt;Anything else you can have me do??</description>
      <pubDate>Fri, 31 May 2002 01:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734222#M753263</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-05-31T01:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734223#M753264</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First, verify that /usr/bin/sh exists:&lt;BR /&gt;&lt;BR /&gt;# ll /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;Then try this:&lt;BR /&gt;&lt;BR /&gt;1) Method 1:&lt;BR /&gt;&lt;BR /&gt;# ln -s /usr/bin /bin&lt;BR /&gt;&lt;BR /&gt;This is safe because if /bin already exists, this command will simply fail gracefully.&lt;BR /&gt;&lt;BR /&gt;If /bin does not exist, it will create the soft-link such that /bin/sh -&amp;gt; /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;2) Method 2:&lt;BR /&gt;&lt;BR /&gt;Modify ./hp_checkperms she-bang (#!/bin/sh) header from&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;to&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;3) Method 3:&lt;BR /&gt;&lt;BR /&gt;# sh -c ./hp_checkperms&lt;BR /&gt;&lt;BR /&gt;This should avoid the she-bang (#!/bin/sh).&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 31 May 2002 09:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734223#M753264</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-05-31T09:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734224#M753265</link>
      <description>Steven,&lt;BR /&gt;&lt;BR /&gt;Tried methods 1 and 2 but still got the same message.&lt;BR /&gt;&lt;BR /&gt;Can you elaborate on method 3? How do I edit the she-bang header?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Marvyn&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 23:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734224#M753265</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-06-03T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734225#M753266</link>
      <description>Steven, &lt;BR /&gt;&lt;BR /&gt;Corrections to the above question. What I meant was:&lt;BR /&gt;&lt;BR /&gt;Tried methods 1 and 3 but still got the same message. &lt;BR /&gt;&lt;BR /&gt;Can you elaborate on method 2? How do I edit the she-bang header? &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;&lt;BR /&gt;Marvyn &lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jun 2002 23:53:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734225#M753266</guid>
      <dc:creator>Marvyn Torres</dc:creator>
      <dc:date>2002-06-03T23:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734226#M753267</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;2) Method 2: &lt;BR /&gt;&lt;BR /&gt;Modify ./hp_checkperms she-bang (#!/bin/sh) header from &lt;BR /&gt;&lt;BR /&gt;#!/bin/sh to #!/usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;In other words, edit the script hp_checkperms&lt;BR /&gt;&lt;BR /&gt;# vi hp_checkperms&lt;BR /&gt; &lt;BR /&gt;Replace #!/bin/sh with #!/usr/bin/sh on the very first line of the script.&lt;BR /&gt;&lt;BR /&gt;Before change it shows:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#  check "execution" permissions on an hp-ux system per the information in&lt;BR /&gt;#  the IPD, which is hopefully correct. Unfortunately, there&lt;BR /&gt;#  will be different permissions settings for the same system file. I will &lt;BR /&gt;#  generate 4 files, LL_errormsgs, MORE.restricted, FIX_permissions, and &lt;BR /&gt;#  MULTIPLE.permissions.&lt;BR /&gt;&lt;BR /&gt;After change, it shows:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#  check "execution" permissions on an hp-ux system per the information in&lt;BR /&gt;#  the IPD, which is hopefully correct. Unfortunately, there&lt;BR /&gt;#  will be different permissions settings for the same system file. I will &lt;BR /&gt;#  generate 4 files, LL_errormsgs, MORE.restricted, FIX_permissions, and &lt;BR /&gt;#  MULTIPLE.permissions.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2002 04:12:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734226#M753267</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-05T04:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734227#M753268</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you still face the same error, show us the output for the following commands:&lt;BR /&gt;&lt;BR /&gt;# ll /usr/bin/sh&lt;BR /&gt;# file /usr/bin/sh&lt;BR /&gt;# ll ./hp_checkperms&lt;BR /&gt;# head -1 ./hp_checkperms&lt;BR /&gt;&lt;BR /&gt;If you have the time, also show us output for the following:&lt;BR /&gt;&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;# env&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Wed, 05 Jun 2002 04:25:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734227#M753268</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-05T04:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: System Files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734228#M753269</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Just to add on, once you swinstall the CISscan.pkg, you should be able to run the following:&lt;BR /&gt;&lt;BR /&gt;# /opt/CIS/cis-scan&lt;BR /&gt;&lt;BR /&gt;Here's an output of my testing that might interest you with regards to SUID/SGID programs:&lt;BR /&gt;&lt;BR /&gt;===========================================&lt;BR /&gt;Beginning system evaluation...&lt;BR /&gt; &lt;BR /&gt;Now a final check for Set-UID and Set-GID programs-- this can take a whole&lt;BR /&gt;lot of time if you have a large filesystem.  Your score if there are&lt;BR /&gt;no extra SUID/SGID programs found will be 4.07 / 10.00 .  If there are&lt;BR /&gt;extra SUID/SGID programs, your score will be 3.89 / 10.00 .&lt;BR /&gt; &lt;BR /&gt;   You can hit CTRL-C at any time to stop at this remaining step.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;        Rating = 3.89 / 10.00&lt;BR /&gt; &lt;BR /&gt;-----------------------------------------&lt;BR /&gt;To learn more about the results, do the following:&lt;BR /&gt; &lt;BR /&gt;   All results/diagnostics:&lt;BR /&gt;        more /opt/CIS/cis-ruler-log.20020606-15:35:48.15947&lt;BR /&gt;   Positive Results Only:&lt;BR /&gt;        egrep "^Positive" /opt/CIS/cis-ruler-log.20020606-15:35:48.15947&lt;BR /&gt;   Negative Results Only:&lt;BR /&gt;        egrep "^Negative" /opt/CIS/cis-ruler-log.20020606-15:35:48.15947&lt;BR /&gt; &lt;BR /&gt;For each item that you score or fail to score on, please reference the &lt;BR /&gt;corresponding item in the CIS Benchmark Document.&lt;BR /&gt;===========================================&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jun 2002 00:46:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-files/m-p/2734228#M753269</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-06-06T00:46:51Z</dc:date>
    </item>
  </channel>
</rss>

