<?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: umask in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734131#M255010</link>
    <description>I've also tried out similare exams, and found same type of ambigous questions.&lt;BR /&gt;&lt;BR /&gt;Clay's answer is perfect, and if you posess the same kind of knowledge you could easily be confused by such questions.&lt;BR /&gt;&lt;BR /&gt;Bharats answer is also great.&lt;BR /&gt; "These are the EXPECTED answers"&lt;BR /&gt;&lt;BR /&gt;The point would often be to get a high score on the test. It might not be easy to convince those holding the exam, that there's something wrong in the test...&lt;BR /&gt;&lt;BR /&gt;So the correct here woul be:&lt;BR /&gt;- Get the knowledge shown by Clay&lt;BR /&gt;- Use your intelligence as shown by Bharat&lt;BR /&gt;&lt;BR /&gt;If you handle both you will become an excellent system administrator!&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
    <pubDate>Sat, 18 Feb 2006 15:48:09 GMT</pubDate>
    <dc:creator>Tor-Arne Nostdal</dc:creator>
    <dc:date>2006-02-18T15:48:09Z</dc:date>
    <item>
      <title>umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734121#M255000</link>
      <description>Hello, here is my question. First what is the real default umask value or permission on HP-UX. Is it 022? How come all books says to set default permission use command umask 000? Can you explain?</description>
      <pubDate>Fri, 17 Feb 2006 12:46:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734121#M255000</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2006-02-17T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734122#M255001</link>
      <description>Hi Stephane:&lt;BR /&gt;&lt;BR /&gt;You should establish an appropriate default umask for every user in the user's profile.&lt;BR /&gt;&lt;BR /&gt;For root, this should be at least 022 or even 027.  For all other users, 022 is very appropriate.&lt;BR /&gt;&lt;BR /&gt;Setting the umask to 000 would simply mean that directories are created with octal permissions 777 (read, write, execute for the owner, group and world); and files with octal 666 (read, write).&lt;BR /&gt;&lt;BR /&gt;This is far too insecure.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 17 Feb 2006 12:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734122#M255001</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-17T12:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734123#M255002</link>
      <description>&lt;BR /&gt;There is no default umask setting and thus it becomes 0000. Generally one of the first things you do is edit /etc/skel/.profile and add a umask value there so that when new users are created they get a defined umask value.&lt;BR /&gt;&lt;BR /&gt;You books are telling you to set umask to 000 so that when software in installed/copied that the original modes of the files are retained. There are two components in play when a file is created: 1) the mode 2) umask. Umask "subtracts" from mode. (it really isn't subtraction but you can think of it that way). By setting umask to 000, no "subtraction" occurs and the files are installed with their mode intact. This may not be a good thing because running with umask 0000 is normally a security risk.</description>
      <pubDate>Fri, 17 Feb 2006 12:59:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734123#M255002</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-17T12:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734124#M255003</link>
      <description>Tks for your replay. But I am asking these questions because they are part of the study book for the HP-UX system CSA exam and I don,t really get it. Here are the question on the book. &lt;BR /&gt;&lt;BR /&gt;What is the default umask value in HP-UX?&lt;BR /&gt;A. 002&lt;BR /&gt;B. 022&lt;BR /&gt;C. 222&lt;BR /&gt;D. 200&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What command will you use to ensure that the default permissions are being used?&lt;BR /&gt;&lt;BR /&gt;A. setperm 777&lt;BR /&gt;B. setperm&lt;BR /&gt;C. setperm umask&lt;BR /&gt;D. umask 000&lt;BR /&gt;&lt;BR /&gt;So I would say B to the fisrt question and D to second question, but still don't get it. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 13:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734124#M255003</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2006-02-17T13:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734125#M255004</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think the is a default setting in&lt;BR /&gt;/etc/profile&lt;BR /&gt;which is used for all users with Bourne-shellstyle and in&lt;BR /&gt;/etc/*csh* OR /etc/.login&lt;BR /&gt;for those with Cshell style.&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 17 Feb 2006 13:23:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734125#M255004</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-02-17T13:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734126#M255005</link>
      <description>This illustrates what I consider to be wrong with the entire certification process.&lt;BR /&gt;&lt;BR /&gt;What is the default umask value in HP-UX?&lt;BR /&gt;A. 002&lt;BR /&gt;B. 022&lt;BR /&gt;C. 222&lt;BR /&gt;D. 200&lt;BR /&gt;&lt;BR /&gt;The "real" answer is none of the above because an untrusted system has a default umask of 0 and a trusted system has a umask of 077. The question is also a bit nebulous in that the specific version of HP-UX is not mentioned so that really old versions might be different. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What command will you use to ensure that the default permissions are being used?&lt;BR /&gt;&lt;BR /&gt;A. setperm 777&lt;BR /&gt;B. setperm&lt;BR /&gt;C. setperm umask&lt;BR /&gt;D. umask 000&lt;BR /&gt;&lt;BR /&gt;In this case D is correct because with a umask of 000 the permissions (more properly "mode") will be left intact.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 13:24:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734126#M255005</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-17T13:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734127#M255006</link>
      <description>For the first is 022, this is the default, for the second, I think that there is something wrong with the question. No answer is right. The answer should be umask 022.&lt;BR /&gt;&lt;BR /&gt;Sometimes, these errors happens on study guides.</description>
      <pubDate>Fri, 17 Feb 2006 13:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734127#M255006</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-02-17T13:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734128#M255007</link>
      <description>What is the default umask value in HP-UX?&lt;BR /&gt;A. 002&lt;BR /&gt;B. 022&lt;BR /&gt;C. 222&lt;BR /&gt;D. 200&lt;BR /&gt;Ans: B&lt;BR /&gt;&lt;BR /&gt;What command will you use to ensure that the default permissions are being used?&lt;BR /&gt;&lt;BR /&gt;A. setperm 777&lt;BR /&gt;B. setperm&lt;BR /&gt;C. setperm umask&lt;BR /&gt;D. umask 000&lt;BR /&gt;&lt;BR /&gt;Ans: D&lt;BR /&gt;&lt;BR /&gt;These are the expected answers.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 15:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734128#M255007</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2006-02-17T15:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734129#M255008</link>
      <description>As Ivan points out, you really must be careful relying on the questions and answers in Raqeef's study guide. I found numerous errors in the first edition I used to study for the CSA exam back in 2001. I haven't read the second edition so don't know if much improvement was made.&lt;BR /&gt;&lt;BR /&gt;Use the study guide as just that... a guide. If there's anything that isn't clear, looks contradictory, or you just want verification of its validity, always use the primary sources of information... man pages and other documentation that you can find on &lt;A href="http://docs.hp.com/." target="_blank"&gt;http://docs.hp.com/.&lt;/A&gt;</description>
      <pubDate>Fri, 17 Feb 2006 15:41:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734129#M255008</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2006-02-17T15:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734130#M255009</link>
      <description>I always check for any errata that may have been found since the publishing of a technical book. For Rafeeq's book it is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/hpbooks/prentice/ptr_0130183741.html" target="_blank"&gt;http://www.hp.com/hpbooks/prentice/ptr_0130183741.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You will see the 'publishers errata' on the right-hand side. I sent Rafeeq a list of seven errors from the first publishing in 2000, and he was extremely appreciative.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 15:51:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734130#M255009</guid>
      <dc:creator>Richard Darling</dc:creator>
      <dc:date>2006-02-17T15:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: umask</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734131#M255010</link>
      <description>I've also tried out similare exams, and found same type of ambigous questions.&lt;BR /&gt;&lt;BR /&gt;Clay's answer is perfect, and if you posess the same kind of knowledge you could easily be confused by such questions.&lt;BR /&gt;&lt;BR /&gt;Bharats answer is also great.&lt;BR /&gt; "These are the EXPECTED answers"&lt;BR /&gt;&lt;BR /&gt;The point would often be to get a high score on the test. It might not be easy to convince those holding the exam, that there's something wrong in the test...&lt;BR /&gt;&lt;BR /&gt;So the correct here woul be:&lt;BR /&gt;- Get the knowledge shown by Clay&lt;BR /&gt;- Use your intelligence as shown by Bharat&lt;BR /&gt;&lt;BR /&gt;If you handle both you will become an excellent system administrator!&lt;BR /&gt;&lt;BR /&gt;/Tor-Arne</description>
      <pubDate>Sat, 18 Feb 2006 15:48:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask/m-p/3734131#M255010</guid>
      <dc:creator>Tor-Arne Nostdal</dc:creator>
      <dc:date>2006-02-18T15:48:09Z</dc:date>
    </item>
  </channel>
</rss>

