<?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: mount filesystem with nosuid, nodev and ro options in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214938#M465670</link>
    <description>As suggested by Horia and MK these filesystems are available at &lt;BR /&gt;/etc/cmcluser/&lt;PACKAGE&gt;.cntl file&lt;BR /&gt;&lt;BR /&gt;Closing thread.&lt;BR /&gt;&lt;BR /&gt;Thanks all for responding and spending your valuable time.&lt;/PACKAGE&gt;</description>
    <pubDate>Mon, 21 Dec 2009 08:32:05 GMT</pubDate>
    <dc:creator>S.S.</dc:creator>
    <dc:date>2009-12-21T08:32:05Z</dc:date>
    <item>
      <title>mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214930#M465662</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We need to mount the following existance filesystems with the following options:&lt;BR /&gt;&lt;BR /&gt;• /var – nosuid, nodev&lt;BR /&gt;• /tmp – nosuid, nodev&lt;BR /&gt;• /usr - readonly&lt;BR /&gt;&lt;BR /&gt;The current /etc/fstab contains:&lt;BR /&gt;/dev/vg00/lvol3 / vxfs delaylog 0 1&lt;BR /&gt;/dev/vg00/lvol1 /stand hfs defaults 0 1&lt;BR /&gt;/dev/vg00/lvol4 /home vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol5 /opt vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol6 /tmp vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol7 /usr vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol8 /var vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol9 /var/adm/crash vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/dba /dba vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/userdata /userdata vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/swap1 ... swap pri=1 0 0&lt;BR /&gt;&lt;BR /&gt;how we can remount the /var, /tmp, /usr filesystems with nosuid, nodev and ro switch.&lt;BR /&gt;&lt;BR /&gt;We want to do this in the production system.  May i know the criticality and does it requires any downtime ?&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Dec 2009 06:54:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214930#M465662</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2009-12-17T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214931#M465663</link>
      <description>/var, /tmp and /usr are all vxfs filesystems, so you should read "man mount_vxfs".&lt;BR /&gt;&lt;BR /&gt;First, the "nodev" option does not seem to exist in HP-UX vxfs. Are you applying Linux hardening instructions to a HP-UX system?&lt;BR /&gt;&lt;BR /&gt;The general syntax for remounting is:&lt;BR /&gt;&lt;BR /&gt;mount -o remount,&lt;OPTIONS&gt; &lt;DEVICE&gt;&lt;BR /&gt;&lt;BR /&gt;There are also some restrictions for remounting a filesystem. From the HP-UX 11.23 mount_vxfs man page:&lt;BR /&gt;----&lt;BR /&gt;remount&lt;BR /&gt;&lt;BR /&gt;Change the mount options for a mounted file system. In particular, remount changes the logging and caching policies. It also changes a files system from read-only to read/write.&lt;BR /&gt;&lt;BR /&gt;remount cannot change a file system from read/write to read-only, nor can it set the snapof or snapsize attributes.&lt;BR /&gt;&lt;BR /&gt;remount does not check possible changes in /etc/fstab. If you use any specific option, you must explicitly pass it in the command line.&lt;BR /&gt;----&lt;BR /&gt;&lt;BR /&gt;Looks like remounting /usr to read-only will not be possible without downtime. If you want to do this, you must add the "ro" option to /etc/fstab and reboot the system.&lt;BR /&gt;&lt;BR /&gt;Setting /var and /tmp to nosuid without downtime may or may not be possible: you should try it in a test system first. For example:&lt;BR /&gt;&lt;BR /&gt;mount -o remount,delaylog,nosuid /var&lt;BR /&gt;&lt;BR /&gt;Of course you should realize that installing most patches will be impossible when /usr is mounted read-only.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/DEVICE&gt;&lt;/OPTIONS&gt;</description>
      <pubDate>Thu, 17 Dec 2009 07:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214931#M465663</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-12-17T07:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214932#M465664</link>
      <description>Hi MK,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;1. I am a new member to this site. Could you pls guide me how could i assign points.&lt;BR /&gt;&lt;BR /&gt;2. Our's is HP-UX B.11.11 U 9000/800 environment.&lt;BR /&gt;&lt;BR /&gt;3. This task is a part of our security baseline.&lt;BR /&gt;&lt;BR /&gt;4. In our /etc/fstab file on production server we have:&lt;BR /&gt;dev/vg00/lvol3 / vxfs delaylog 0 1&lt;BR /&gt;/dev/vg00/lvol1 /stand hfs defaults 0 1&lt;BR /&gt;/dev/vg00/lvol4 /home vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol5 /opt vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol6 /tmp vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol7 /usr vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol8 /var vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/lvol9 /var/adm/crash vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/dba /dba vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/userdata /userdata vxfs delaylog 0 2&lt;BR /&gt;/dev/vg00/swap1 ... swap pri=1 0 0&lt;BR /&gt;&lt;BR /&gt;If we see the output of the "bdf" command we have apps filesystems.&lt;BR /&gt;&lt;BR /&gt;I guess the apps filesystems are not added in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;As per my knowledge, if the filesytem entry is not added in the /etc/fstab file, after reboot that filesystem will not automatically mount. Am i right ?&lt;BR /&gt;&lt;BR /&gt;Pls find the output of bdf command:&lt;BR /&gt;&lt;BR /&gt;$ bdf&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol3    2097152  268640 1814264   13% /&lt;BR /&gt;/dev/vg00/lvol1     314736   64184  219072   23% /stand&lt;BR /&gt;/dev/vg00/lvol8    10485760 7740496 2723888   74% /var&lt;BR /&gt;/dev/vg00/lvol9    25165824 1814768 22986264    7% /var/adm/crash&lt;BR /&gt;/dev/vg00/lvol7    8388608 1502032 6832824   18% /usr&lt;BR /&gt;/dev/vg00/userdata 4292608 1692818 2455708   41% /userdata&lt;BR /&gt;/dev/vg00/lvol6    8388608 1100128 7250080   13% /tmp&lt;BR /&gt;/dev/vg00/lvol5    10485760 7144792 3314928   68% /opt&lt;BR /&gt;/dev/vg00/lvol4    8388608 2808864 5538360   34% /home&lt;BR /&gt;/dev/vg00/dba      8388608 4748234 3530428   57% /dba&lt;BR /&gt;/dev/vgexeprod/rmanexe&lt;BR /&gt;                   10485760 4188414 6100588   41% /rmanexe&lt;BR /&gt;/dev/vgexeprod/prodexe&lt;BR /&gt;                   104857600 58399600 46095552   56% /prodexe&lt;BR /&gt;/dev/vgdata1prod/proddb1&lt;BR /&gt;                   1073577984 666897232 403503576   62% /proddb1&lt;BR /&gt;/dev/vgdata2prod/proddb2&lt;BR /&gt;                   1073577984 479547080 589390080   45% /proddb2&lt;BR /&gt;/dev/vgappsdata/prodspool&lt;BR /&gt;                   83886080 75110228 8775852   90% /prodspool&lt;BR /&gt;/dev/vgappsdata/prodedi&lt;BR /&gt;                   79691776 70938560 8717864   89% /prodedi&lt;BR /&gt;/dev/vgappsdata/comets&lt;BR /&gt;                   5242880  433307 4509031    9% /comets&lt;BR /&gt;/dev/vgappsdata/canpcdata&lt;BR /&gt;                   5242880  233197 4696617    5% /canpcdata&lt;BR /&gt;/dev/vgappsdata/rmandb&lt;BR /&gt;                   10485760 2069630 8153130   20% /rmandb&lt;BR /&gt;/dev/vglogsprod/prodarch2&lt;BR /&gt;                   62914560 7468456 55013064   12% /prodarch&lt;BR /&gt;/dev/vglogsprod/prodredo2&lt;BR /&gt;                   10485760 3736312 6538596   36% /prodredo&lt;BR /&gt;/dev/vgdata3prod/proddb3&lt;BR /&gt;                   512000000 184876720 324567640   36% /proddb3&lt;BR /&gt;/dev/vgdata4prod/proddb4&lt;BR /&gt;                   512000000 139300520 369787776   27% /proddb4&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;It is in cluster and the package is running in this server.&lt;BR /&gt;&lt;BR /&gt;May i know the reason why the other filesystem entries are not added in /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Swetha&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Dec 2009 06:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214932#M465664</guid>
      <dc:creator>Canon_3</dc:creator>
      <dc:date>2009-12-18T06:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214933#M465665</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;check this link "How Do I Assign Points?"&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Fri, 18 Dec 2009 06:35:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214933#M465665</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2009-12-18T06:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214934#M465666</link>
      <description>IMHO it will be not possible or result in strange behavior if you try to mount things like /var or /usr read-only.&lt;BR /&gt;&lt;BR /&gt;Maybe the system will not even run, but certainly it will not log anything.&lt;BR /&gt;&lt;BR /&gt;What should be the reason for this?</description>
      <pubDate>Fri, 18 Dec 2009 06:50:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214934#M465666</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-12-18T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214935#M465667</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;"It is in cluster and the package is running in this server.&lt;BR /&gt;&lt;BR /&gt;May i know the reason why the other filesystem entries are not added in /etc/fstab file."&lt;BR /&gt;&lt;BR /&gt;The "other" filesystems that you can not find in /etc/fstab are mounted by the cluster.&lt;BR /&gt;&lt;BR /&gt;You can check the scripts within /etc/cmcluster/&lt;PACKAGE_NAMES&gt;&lt;BR /&gt;in order to see what will be mounted and where.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Horia.&lt;/PACKAGE_NAMES&gt;</description>
      <pubDate>Fri, 18 Dec 2009 07:32:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214935#M465667</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2009-12-18T07:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214936#M465668</link>
      <description>1.) already covered by Michal.&lt;BR /&gt;&lt;BR /&gt;2.) HP-UX B.11.11 is the OS version. It also has the marketing name "HP-UX 11i v1".&lt;BR /&gt;9000/800 is two thirds of the complete model designation of the server. Essentially it says "a PA-RISC server of some model". &lt;BR /&gt;&lt;BR /&gt;The missing part would have identified the exact model. Fortunately it seems to have been unimportant for your questions, otherwise the people answering you would have felt a little bit frustrated.&lt;BR /&gt; &lt;BR /&gt;9000 = it has a PA-RISC processor&lt;BR /&gt;800 = it is a server, not a workstation.&lt;BR /&gt;&lt;BR /&gt;In HP-UX, the "model" command will output the complete model identification. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3.) Yes, but it appears your security baseline may have been designed for Linux or some other unix-like system, not specifically for HP-UX. Not all Linux instructions can be applied to HP-UX as-is, because the operating systems are different.&lt;BR /&gt;&lt;BR /&gt;4.) /etc/fstab is the usual place for configuring filesystems to be automatically mounted, sure. But if a filesystem is configured there, the system will *always* try to mount it. If the intent is to mount the filesystem only when some conditions are met, the configuration needs to be done differently.&lt;BR /&gt;&lt;BR /&gt;You say this server is part of a cluster. That would explain it: HP-UX 11.11 does not have a cluster filesystem, so any filesystems that may be mounted on other cluster nodes need a control mechanism that makes sure the filesystem is mounted by one node at a time only. The cluster software includes this control mechanism.&lt;BR /&gt;&lt;BR /&gt;The filesystems related to cluster packages are configured in the cluster configuration, not in /etc/fstab. &lt;BR /&gt;&lt;BR /&gt;Usually the cluster software is started when the system boots: it will attempt to contact all the other cluster nodes and verify which package filesystems are mounted on each node. If the system cannot access other cluster nodes, it assumes it has been isolated by a network failure. Other nodes within a working part of the network may be using the filesystems, so the only safe option is to not mount any package filesystems at all in this situation.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 18 Dec 2009 07:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214936#M465668</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-12-18T07:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214937#M465669</link>
      <description>As suggested by Horia and MK these filesystems are available at &lt;BR /&gt;/etc/cmcluser/&lt;PACKAGE&gt;.cntl file&lt;BR /&gt;&lt;BR /&gt;Closing thread.&lt;BR /&gt;&lt;BR /&gt;Thanks all for responding and spending your valuable time.&lt;/PACKAGE&gt;</description>
      <pubDate>Mon, 21 Dec 2009 08:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214937#M465669</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2009-12-21T08:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: mount filesystem with nosuid, nodev and ro options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214938#M465670</link>
      <description>As suggested by Horia and MK these filesystems are available at &lt;BR /&gt;/etc/cmcluser/&lt;PACKAGE&gt;.cntl file&lt;BR /&gt;&lt;BR /&gt;Closing thread.&lt;BR /&gt;&lt;BR /&gt;Thanks all for responding and spending your valuable time.&lt;/PACKAGE&gt;</description>
      <pubDate>Mon, 21 Dec 2009 08:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mount-filesystem-with-nosuid-nodev-and-ro-options/m-p/5214938#M465670</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2009-12-21T08:32:05Z</dc:date>
    </item>
  </channel>
</rss>

