<?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: Procedure to set umask  value?(at startup scripts) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669053#M756607</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;did you try the command I described in my last posting in your start- scripts?&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Thu, 21 Feb 2002 12:26:56 GMT</pubDate>
    <dc:creator>Peter Kloetgen</dc:creator>
    <dc:date>2002-02-21T12:26:56Z</dc:date>
    <item>
      <title>Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669045#M756599</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I want to set my hpux umask setting to "027" at all run levels.&lt;BR /&gt;&lt;BR /&gt;I can do it by editing the .profile and .dtprofile files and adding &lt;BR /&gt;a line "umask 027".&lt;BR /&gt;&lt;BR /&gt;But I want to do this in other way to have more security.&lt;BR /&gt;I.e. I want to use the system startup scripts to do this.&lt;BR /&gt;&lt;BR /&gt;I have executed the below mentioned script to create sartup script&lt;BR /&gt;files to accomplish this task.&lt;BR /&gt;------------------------------------------&lt;BR /&gt;#umask 027&lt;BR /&gt;#echo "umask 027" &amp;gt; /sbin/init.d/umask.sh&lt;BR /&gt;# for d in /sbin/rc?.d&lt;BR /&gt;&amp;gt;do&lt;BR /&gt;&amp;gt;ln /sbin/init.d/umask.sh $d/S000umask.sh&lt;BR /&gt;&amp;gt;done&lt;BR /&gt;------------------------------------------&lt;BR /&gt;But after rebooting and logging in when I tried to see the current umask value,&lt;BR /&gt;I get "02" and umask -S says u=rwx,g=rwx,o=rx.&lt;BR /&gt;&lt;BR /&gt;Any help or clue or alternate idea will be highly appreciated. &lt;BR /&gt;&lt;BR /&gt;-K.Vijayaragavan&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 10:15:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669045#M756599</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-02-21T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669046#M756600</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;See man rc&lt;BR /&gt;&lt;BR /&gt;This script is called at the start of every runlevel and sets the default umask.&lt;BR /&gt;&lt;BR /&gt;If you feel the need to do it you can change it there and it should be changed in every runlevel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Remeber to backup this system script before editing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;      Steve steel</description>
      <pubDate>Thu, 21 Feb 2002 10:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669046#M756600</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-02-21T10:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669047#M756601</link>
      <description>You need to change the value set in the script /sbin/rc&lt;BR /&gt;&lt;BR /&gt;This will sort out most of your processes, but anything started by init will still have the existing umask...Notably your console getty, and therefore your login session at the console.&lt;BR /&gt;&lt;BR /&gt;So I'd still set the umask in /etc/profile as well...</description>
      <pubDate>Thu, 21 Feb 2002 10:54:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669047#M756601</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2002-02-21T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669048#M756602</link>
      <description>Usually the mask is set in /etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Federico</description>
      <pubDate>Thu, 21 Feb 2002 11:06:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669048#M756602</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2002-02-21T11:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669049#M756603</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you have the apropiate privileges in the /etc/profile or .profile you must not have security problems, I think.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Thu, 21 Feb 2002 11:16:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669049#M756603</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-02-21T11:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669050#M756604</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try the following command in /etc/profile:&lt;BR /&gt;&lt;BR /&gt;umask u=rwx,g=rx,o=&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;this should set the desired permissions, whitespaces are not allowed, the fields have to be separated by ticks.&lt;BR /&gt;&lt;BR /&gt;remember you have to logout and relogin to make the changes.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 21 Feb 2002 11:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669050#M756604</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-21T11:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669051#M756605</link>
      <description>Still i am getting the same output "02" for the command umask after making umask value 027 in "/sbin/rc" file.&lt;BR /&gt;&lt;BR /&gt;I don't want to edit the .dtprofile or .profile or /etc/profile files as i want to have control on umask setting of the system at all times.&lt;BR /&gt;&lt;BR /&gt;I have to restrict the access to execute umask command to root only if i go for editing the profile files.&lt;BR /&gt;&lt;BR /&gt;But the reason why i am trying to look for alternative is I heard that  if we depend only on .profile and .dtprofile files users may gain access to change the umask settings.&lt;BR /&gt;Is there any other way other than editing .profile, .dtprofile , .cshrc , .login&lt;BR /&gt;and /etc/profile and denying execute permissions to others for umask command? &lt;BR /&gt;&lt;BR /&gt;-Vijay</description>
      <pubDate>Thu, 21 Feb 2002 12:10:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669051#M756605</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-02-21T12:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669052#M756606</link>
      <description>K.Vijayaragavan,&lt;BR /&gt;&lt;BR /&gt;Why do you think you have to restrict the use of umask? And why not put it in /etc/profile? It's not like users can change /etc/profile, because the permissions should be:&lt;BR /&gt;&lt;BR /&gt;# ls -l /etc/profile&lt;BR /&gt;-r--r--r--   1 bin        bin           2478 Nov 13 13:50 /etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you are concerned, for some reason, that users might change their umask, then keep them OUT of shells and in their applications! if a user changes their umask, it DOES NOT give them any special privileges, and it's NOT a security risk, other than the fact that they are in a shell!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 21 Feb 2002 12:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669052#M756606</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-21T12:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669053#M756607</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;did you try the command I described in my last posting in your start- scripts?&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 21 Feb 2002 12:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669053#M756607</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-02-21T12:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669054#M756608</link>
      <description>As I want to maintain umask value of 027 as per the security standard suggested by our organisation, i implemented it  by editing profile files and securing profile files and umask command.&lt;BR /&gt;&lt;BR /&gt;But i am not sure whether this much action is enough to maintain umask value to 027 at any time.&lt;BR /&gt;&lt;BR /&gt;That's whay i tried to know if any one else is having different approach and view.&lt;BR /&gt;&lt;BR /&gt;So if any one else is having different approach please share with me!&lt;BR /&gt;&lt;BR /&gt;Thanks to all!&lt;BR /&gt;&lt;BR /&gt;Vijay&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Feb 2002 12:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669054#M756608</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-02-21T12:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669055#M756609</link>
      <description>Hi peter,&lt;BR /&gt;&lt;BR /&gt;I tried it already and i could not get the expected result as  there is no difference between the commands &lt;BR /&gt;&lt;BR /&gt;" umask u=rwx,g=rx,o="&lt;BR /&gt;&lt;BR /&gt;&amp;amp;&lt;BR /&gt;&lt;BR /&gt;"umask 027"&lt;BR /&gt;&lt;BR /&gt;-Vijay.</description>
      <pubDate>Thu, 21 Feb 2002 12:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669055#M756609</guid>
      <dc:creator>K.Vijayaragavan.</dc:creator>
      <dc:date>2002-02-21T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669056#M756610</link>
      <description>If you are maintaining a security standard, then keep people in their applications and out of shells. The biggest internal security risk and data protetion risk, is when users are allowed access to shells. I used to write banking applications where no one in the bank, including their operators and management, where never allowed in unix shells (ouch double negative).&lt;BR /&gt;&lt;BR /&gt;Your security procedure should state that ROOT and other "important users" (oracle, informix, etc...) should have a umask of 027. But for normal users it really doesn't matter too much. &lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 21 Feb 2002 12:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669056#M756610</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-21T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Procedure to set umask  value?(at startup scripts)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669057#M756611</link>
      <description>At our company, it was decided that a .profile is not owned by a user.  Instead we created an .own_profile (and that one is property of a user).  This gives u the opportunity to create default .profile files with a 'umask 027' in it.&lt;BR /&gt;&lt;BR /&gt;cat .profile&lt;BR /&gt;  blabla&lt;BR /&gt;&lt;BR /&gt;  . ./.own_profile  &lt;BR /&gt;  &lt;BR /&gt;  blabla&lt;BR /&gt;  umask 027&lt;BR /&gt;&lt;BR /&gt;Of course, it is a problem that any person can change his own .profile (since he owns his homedir, the filepermissions are meaningless).  What I had in mind was to overwrite all .profiles every night.  This should discourage the smart guys to modify their .profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hein coulier</description>
      <pubDate>Thu, 21 Feb 2002 12:53:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/procedure-to-set-umask-value-at-startup-scripts/m-p/2669057#M756611</guid>
      <dc:creator>Systeemingenieurs Infoc</dc:creator>
      <dc:date>2002-02-21T12:53:00Z</dc:date>
    </item>
  </channel>
</rss>

