<?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 root? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527513#M867673</link>
    <description>Klaus,&lt;BR /&gt;Where is the umask set when the server is trusted.  I don't see it (can't find it).</description>
    <pubDate>Tue, 15 May 2001 12:49:32 GMT</pubDate>
    <dc:creator>Paul T. Green</dc:creator>
    <dc:date>2001-05-15T12:49:32Z</dc:date>
    <item>
      <title>Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527505#M867665</link>
      <description>I will be umasking multiple users in the next few days.  Does root need to be umasked?  With four sysadmins with access to root account, tto many world writable files exist out there I have to go and clean up.  Do not want to have to face this in the future.</description>
      <pubDate>Fri, 11 May 2001 14:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527505#M867665</guid>
      <dc:creator>Paul T. Green</dc:creator>
      <dc:date>2001-05-11T14:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527506#M867666</link>
      <description>I would set it to 027 as default. And let the convention be, if I want to make permissions less restrictive then I'll do it explicitly.&lt;BR /&gt;&lt;BR /&gt;My 2 cents, Clay&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2001 14:25:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527506#M867666</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-05-11T14:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527507#M867667</link>
      <description>Hi Frank:&lt;BR /&gt;&lt;BR /&gt;My preference is to provide a 'umask' of at least '022' or even '027' for root in its /.profile.  I find it easier to "open-up" permissions later than to have to tighten them done after the fact.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 11 May 2001 14:28:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527507#M867667</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-05-11T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527508#M867668</link>
      <description>Hi Frank&lt;BR /&gt;&lt;BR /&gt;I would leave it like that , even i case they are to write they can change it , your problem looks to be more of functional in nature.&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava</description>
      <pubDate>Fri, 11 May 2001 14:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527508#M867668</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2001-05-11T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527509#M867669</link>
      <description>If root's umask is zero, you have VERY SERIOUS security problems right now! Every file and directory that root has created is 666 or 777 respectively, unless root took the time to correct these permission errors.  Such permission settings mean that anyone (not just root) can modify or remove root files and possibly worse, run a root script or program and obtain root privileges.&lt;BR /&gt;&lt;BR /&gt;I would set umask as a MINIMUM to 022 right now in /etc/profile so all users have protection for their own files.  root might be 022 but a more secure setting is 077 which prevents all users from accessing any file or directory until root makes a conscious decision to open up permissions.&lt;BR /&gt;&lt;BR /&gt;To find all the errors, I would run the following commands to locate problems:&lt;BR /&gt;&lt;BR /&gt;for DIRS in / /opt /usr /stand&lt;BR /&gt;do&lt;BR /&gt;find $DIRS -xdev -perm 777&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Repeat the same commands but change 777 to 666 and run again.  Then correct all the bad permissions.</description>
      <pubDate>Sat, 12 May 2001 01:08:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527509#M867669</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-05-12T01:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527510#M867670</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Bill's right - change the umask setting as soon as possible in the /etc/profile file.  You will also want to set the umask in the /etc/login file for your csh and tcsh shell users.&lt;BR /&gt;&lt;BR /&gt;Also, keep in mind that users can override their default umask setting by issuing the command themselves so educate them on what it is and why it is what it is.&lt;BR /&gt;&lt;BR /&gt;--Bruce</description>
      <pubDate>Mon, 14 May 2001 12:41:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527510#M867670</guid>
      <dc:creator>Bruce Regittko_1</dc:creator>
      <dc:date>2001-05-14T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527511#M867671</link>
      <description>Bill, Bruce...&lt;BR /&gt;Tell me something (I do agree with both your comments), when I trust a system, I've been told that the default umask of "0" is changed to 07077, so nothing needs to be done to tighten up umask.  I've been looking where this is set and cannot find it.  Can you clear this up for me.  Should I go and set the 022/077 umask on the /etc/profile anyway?</description>
      <pubDate>Tue, 15 May 2001 11:28:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527511#M867671</guid>
      <dc:creator>Paul T. Green</dc:creator>
      <dc:date>2001-05-15T11:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527512#M867672</link>
      <description>&lt;BR /&gt;/etc/profile is probably not the most secure place to spot the "umask 0xxx". The X sessions will not run through that automatically.&lt;BR /&gt;&lt;BR /&gt;Better places: /sbin/rc, /sbin/rc.utils, ... .&lt;BR /&gt;and additionally /etc/profile, /etc/login for the login shells started from getty.</description>
      <pubDate>Tue, 15 May 2001 12:15:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527512#M867672</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-05-15T12:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527513#M867673</link>
      <description>Klaus,&lt;BR /&gt;Where is the umask set when the server is trusted.  I don't see it (can't find it).</description>
      <pubDate>Tue, 15 May 2001 12:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527513#M867673</guid>
      <dc:creator>Paul T. Green</dc:creator>
      <dc:date>2001-05-15T12:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Umask root?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527514#M867674</link>
      <description>Correct.  In a standard system, umask is set (typically) in /etc/profile and /etc/login) for all users.  However, if not set, umask defaults to 00 which means 777/666 direcory/file permissions respectively.&lt;BR /&gt;&lt;BR /&gt;On an un-trusted system, by default login programs such as telnet and rlogin&lt;BR /&gt;set the umask to 00. On an un-trusted system, the umask is set in the login&lt;BR /&gt;script file. That file will be different depending on how you login. It is set&lt;BR /&gt;in the following places: &lt;BR /&gt;&lt;BR /&gt;1. telnet = either ~/.profile or if that doesn't exist then /etc/profile &lt;BR /&gt;&lt;BR /&gt;2. vue = either ~/.vueprofile or if that doesn't exist then /usr/vue/config/sys.vueprofile &lt;BR /&gt;&lt;BR /&gt;3. cde = either ~/.dtprofile or if that&lt;BR /&gt;doesn't exist then /usr/dt/config/sys.dtprofile&lt;BR /&gt;&lt;BR /&gt;You can set the umask for&lt;BR /&gt;login programs in the user login scripts(/etc/profile or /etc/login or .profile/.cshrc). Also you can set the umask per user in .dtprofile and .vueprofile for CDE and VUE&lt;BR /&gt;&lt;BR /&gt;However, Trusted system design recognizes how critical this setting is to the system's health and set umask to 077, the most restrictive possible for non-owners/groups. I have not found where it is set though...probably in a program rather than a script.  You can override the value but as mentioned before, good security means trust nobody until proven otherwise.  Make a conscious decision to open up privileges.</description>
      <pubDate>Wed, 16 May 2001 01:51:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/umask-root/m-p/2527514#M867674</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-05-16T01:51:16Z</dc:date>
    </item>
  </channel>
</rss>

