<?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: how to set umask for group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812692#M827346</link>
    <description>Hi (again) Scott:&lt;BR /&gt;&lt;BR /&gt;You asked specifically about 'umask'.  My answer above using 'setprivgrp' is predicated on the fact that if you confer the ablity to 'chown' then you confer ability to change permission bits ('chmod'), too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 24 Sep 2002 23:45:14 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-09-24T23:45:14Z</dc:date>
    <item>
      <title>how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812688#M827342</link>
      <description>Does anyone know how to set a umask for a group? &lt;BR /&gt;&lt;BR /&gt;I remember somewhere reading that it's easy to do, but can't for the life of me remember how.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Tue, 24 Sep 2002 22:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812688#M827342</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-09-24T22:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812689#M827343</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I believe you are looking for 'setprivgrp' [although setting the 'umask' isn't a direct option].  See the man (1M) pages for 'setprivgrp'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Sep 2002 23:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812689#M827343</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-24T23:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812690#M827344</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt; I don't see any way to do this to any *other* user or group from a command because the umask command itself only works on the current shell.&lt;BR /&gt;&lt;BR /&gt;I suspect you'd have to search the passwd file for all primary members (group file for secondary members) of a group &amp;amp; extract the home dir &amp;amp; edit the .profile (.login) file within that home dir - setting the umask there.&lt;BR /&gt;&lt;BR /&gt;Then the mask will apply upon next login.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 24 Sep 2002 23:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812690#M827344</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-09-24T23:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812691#M827345</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;I don't see a perfect solution for you. One thing to consider would be to set up a skeleton profile for each group that you intend using and have the umask set that way. I would of course still keep the the umask setting in /etc/profile just in case.&lt;BR /&gt;&lt;BR /&gt;As Jeff mentioned, the umask is set by each users shell.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Michael</description>
      <pubDate>Tue, 24 Sep 2002 23:41:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812691#M827345</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-09-24T23:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812692#M827346</link>
      <description>Hi (again) Scott:&lt;BR /&gt;&lt;BR /&gt;You asked specifically about 'umask'.  My answer above using 'setprivgrp' is predicated on the fact that if you confer the ablity to 'chown' then you confer ability to change permission bits ('chmod'), too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 24 Sep 2002 23:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812692#M827346</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-24T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812693#M827347</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;Are you just trying to have new files created in a directory retain the directories group id? If so, you would chmod g+s /mydir. This will not change the group of existing files, so you may have to chgrp -R mygrp /mydir.&lt;BR /&gt;&lt;BR /&gt;As far as affecting the umask of all members of a group, you could try to implement a shared .profile or .cshrc that sets the umask (and other things) for everyone belonging to a particular group. For example:&lt;BR /&gt;&lt;BR /&gt;MYGRP=mygrp&lt;BR /&gt;if [ -n "`groups | grep $MYGRP`" ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Sourcing central .profile for group $MYGRP"&lt;BR /&gt;  . /nfsmnt/mygrp/mygrp.profile&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;and /nfsmnt/mygrp/.profile is on an nfs mounted directory and contains the umask 007 command and what ever else is specific to your group.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Keith</description>
      <pubDate>Thu, 26 Sep 2002 12:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812693#M827347</guid>
      <dc:creator>Keith Clark</dc:creator>
      <dc:date>2002-09-26T12:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to set umask for group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812694#M827348</link>
      <description>How about something like the following in /etc/profile (assuming GID 20 is the group in question and the use ksh or sh):&lt;BR /&gt;&lt;BR /&gt;if [[ `id -g` -eq 20 ]]&lt;BR /&gt;then&lt;BR /&gt;  umask 022&lt;BR /&gt;else&lt;BR /&gt;  umask 077&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2002 12:37:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-set-umask-for-group/m-p/2812694#M827348</guid>
      <dc:creator>Tom Danzig</dc:creator>
      <dc:date>2002-09-26T12:37:17Z</dc:date>
    </item>
  </channel>
</rss>

