<?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: setting default lock screen saver timeout CIS security assessment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997945#M729675</link>
    <description>&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;but I believe I cannot just edit the sys.resources file and save it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why not?&amp;nbsp; They're all just text files as far as I can tell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;It don't seems to be able to read it after I do changes to that file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What can't read it?&amp;nbsp; What error do you get?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;nbsp;...can I check if there is a command I can remove all the sys.resources from /etc/dt/config/*/&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Well, there's always the 'rm' command.&amp;nbsp; This should remove all the sys.resources files, but if you're actually using any X-Windows, CDE, or anything then I"m not sure this will work well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# rm /usr/dt/config/*/sys.resources&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;The intention is to run the script to harden&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OK.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last time I looked at the CIS script for HP-UX was 10 years ago, if not more.&amp;nbsp; At that point in time they really didn't do a good job with writing the script for HP-UX.&amp;nbsp; I recall that it didn't work well and the results it gave were not very accurate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2018 03:55:24 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2018-02-24T03:55:24Z</dc:date>
    <item>
      <title>setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997792#M729670</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Can someone help im trying to harden my server with the script below from cis security on lock screen timeout&lt;/P&gt;&lt;P&gt;for file in /usr/dt/config/*/sys.resources; do dir="$(dirname "$file" | sed 's|^/usr/|/etc/|')" mkdir -p "$dir" echo 'dtsession*saverTimeout: 10' &amp;gt;&amp;gt;"$dir/sys.resources" echo 'dtsession*lockTimeout: 10' &amp;gt;&amp;gt;"$dir/sys.resources"done&lt;/P&gt;&lt;P&gt;After running the script . a sys.resources file is created with two line as below&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri"&gt;dtsession*saverTimeout: 10&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri"&gt;dtsession*lockTimeout: 10 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri"&gt;but unfortunately the screensaver parameter still fail . Can someone help ??&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Calibri"&gt;Vincent&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:27:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997792#M729670</guid>
      <dc:creator>Vincent_5</dc:creator>
      <dc:date>2018-02-22T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997825#M729671</link>
      <description>&lt;P&gt;Did you check for a sys.resources file before you ran that command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my /usr/dt/config directory EACH subdirectory has its own sys.resources file and all of those sys.resources file has dtsession*lockTimeout and dtsession*saverTimeout already defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what the CIS script is looking for, but it may not be checking properly.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997825#M729671</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2018-02-22T21:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997850#M729672</link>
      <description>Hi,&lt;BR /&gt;Thanks for the support, but is there a command I can check all the sys.resources file if the two lines are there . Kindly help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Vincent&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Feb 2018 04:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997850#M729672</guid>
      <dc:creator>Vincent_5</dc:creator>
      <dc:date>2018-02-23T04:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997895#M729673</link>
      <description>&lt;P&gt;Try this script.&amp;nbsp; It will search the /usr/dt/config directory and look for sys.resources files.&amp;nbsp; It will then check each file for the "dtsession*saverTimeout" and "dtsession*lockTimeout" lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;for i in $(find /usr/dt/config -name sys.resources -print)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;do&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;grep -q -e "dtsession\*saverTimeout" -e "dtsession\*lockTimeout" ${i}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;if (( $? == 0 )) ; then&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;echo "File ${i} contains the saverTimeout and lockTimeout lines"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;echo "File ${i} does NOT contain the saverTimeout and lockTimeout lines"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;fi&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;done&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If you want to see the lines each file contains, just remove the '-q' from the grep command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 14:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997895#M729673</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2018-02-23T14:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997941#M729674</link>
      <description>Hi,&lt;BR /&gt;Thanks for the script , but I believe I cannot just edit the sys.resources file and save it . It don't seems to be able to read it after I do changes to that file. Btw, can I check if there is a command I can remove all the sys.resources from /etc/dt/config/*/ . The intention is to run the script to harden . Pls advice&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Vincent</description>
      <pubDate>Sat, 24 Feb 2018 03:03:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997941#M729674</guid>
      <dc:creator>Vincent_5</dc:creator>
      <dc:date>2018-02-24T03:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting default lock screen saver timeout CIS security assessment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997945#M729675</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;but I believe I cannot just edit the sys.resources file and save it&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why not?&amp;nbsp; They're all just text files as far as I can tell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;It don't seems to be able to read it after I do changes to that file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What can't read it?&amp;nbsp; What error do you get?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;nbsp;...can I check if there is a command I can remove all the sys.resources from /etc/dt/config/*/&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Well, there's always the 'rm' command.&amp;nbsp; This should remove all the sys.resources files, but if you're actually using any X-Windows, CDE, or anything then I"m not sure this will work well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;# rm /usr/dt/config/*/sys.resources&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;The intention is to run the script to harden&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;OK.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last time I looked at the CIS script for HP-UX was 10 years ago, if not more.&amp;nbsp; At that point in time they really didn't do a good job with writing the script for HP-UX.&amp;nbsp; I recall that it didn't work well and the results it gave were not very accurate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 03:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/setting-default-lock-screen-saver-timeout-cis-security/m-p/6997945#M729675</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2018-02-24T03:55:24Z</dc:date>
    </item>
  </channel>
</rss>

