<?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: edit on .profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780083#M832785</link>
    <description>I cut/pasted the suggestion from Hai exactly where the start and end points were (not including that text) and made it executable.  It's the same file word for word with the same lines.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
    <pubDate>Mon, 05 Aug 2002 20:03:11 GMT</pubDate>
    <dc:creator>Jim Lewis_8</dc:creator>
    <dc:date>2002-08-05T20:03:11Z</dc:date>
    <item>
      <title>edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780079#M832777</link>
      <description>Is there a way to make a change on a one line entry in each of the user's .profile removing the umask entry all together.  I have over 600 users to make this simple change on their corresponding ".profile" and I'm not that experienced in HP-UX 10.20 programming.&lt;BR /&gt;&lt;BR /&gt;Thank you....</description>
      <pubDate>Mon, 05 Aug 2002 19:28:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780079#M832777</guid>
      <dc:creator>Jim Lewis_8</dc:creator>
      <dc:date>2002-08-05T19:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780080#M832779</link>
      <description>You can run the following script to remove the umask line in all users' .profile&lt;BR /&gt; &lt;BR /&gt;---- script starts -----&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;find /home -type f -name '.profile' | while read FILE&lt;BR /&gt;do&lt;BR /&gt;if [ `grep umask $FILE` -eq 0 ]&lt;BR /&gt;then &lt;BR /&gt;grep -v umask &amp;gt; $FILE.new&lt;BR /&gt;cp $FILE.new $FILE&lt;BR /&gt;rm $FILE.new&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;----- script ends ------&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 05 Aug 2002 19:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780080#M832779</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-05T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780081#M832781</link>
      <description>I created a file called rmumask.com and it failed due to a parameter problem...any suggestions?&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;&lt;BR /&gt;./rmumask.com[5]: test: Specify a parameter with this command.&lt;BR /&gt;&lt;BR /&gt;Thank You....</description>
      <pubDate>Mon, 05 Aug 2002 19:55:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780081#M832781</guid>
      <dc:creator>Jim Lewis_8</dc:creator>
      <dc:date>2002-08-05T19:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780082#M832783</link>
      <description>Show us your file so we can see anything possibly out of the ordinary.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2002 20:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780082#M832783</guid>
      <dc:creator>Christopher McCray_1</dc:creator>
      <dc:date>2002-08-05T20:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780083#M832785</link>
      <description>I cut/pasted the suggestion from Hai exactly where the start and end points were (not including that text) and made it executable.  It's the same file word for word with the same lines.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 05 Aug 2002 20:03:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780083#M832785</guid>
      <dc:creator>Jim Lewis_8</dc:creator>
      <dc:date>2002-08-05T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780084#M832786</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;Can you post the file?&lt;BR /&gt;&lt;BR /&gt;Also in case you do not know, you need to make the file executable as follows:&lt;BR /&gt;&lt;BR /&gt;# chmod 755 rmumask.com&lt;BR /&gt;&lt;BR /&gt;By the way, I believe that there is no error in my script.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 05 Aug 2002 20:07:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780084#M832786</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-05T20:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780085#M832787</link>
      <description>Posting of file, permissions set to 755...&lt;BR /&gt;&lt;BR /&gt;&amp;lt; ca_tok1 &amp;gt; /tmp #more rmumask.com&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;find /home -type f -name '.profile' | while read FILE&lt;BR /&gt;do&lt;BR /&gt;if [ `grep umask $FILE` -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt;grep -v umask &amp;gt; $FILE.new&lt;BR /&gt;cp $FILE.new $FILE&lt;BR /&gt;rm $FILE.new&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2002 20:15:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780085#M832787</guid>
      <dc:creator>Jim Lewis_8</dc:creator>
      <dc:date>2002-08-05T20:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780086#M832788</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;Actually, there is a logical missing in my script.  It should have been as follows:&lt;BR /&gt;&lt;BR /&gt;---- script starts ----- &lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;find /home -type f -name '.profile' | while read FILE &lt;BR /&gt;do &lt;BR /&gt;grep umask $FILE &amp;gt;/dev/null&lt;BR /&gt;if [ `echo $?` -eq 0 ] &lt;BR /&gt;then &lt;BR /&gt;grep -v umask &amp;gt; $FILE.new &lt;BR /&gt;cp $FILE.new $FILE &lt;BR /&gt;rm $FILE.new &lt;BR /&gt;fi &lt;BR /&gt;done &lt;BR /&gt;----- script ends ------ &lt;BR /&gt;&lt;BR /&gt;Sorry.  It must work this time.&lt;BR /&gt;&lt;BR /&gt;Hai&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2002 20:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780086#M832788</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-05T20:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780087#M832789</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;I spotted another missing parameter.  This is the final one:&lt;BR /&gt;&lt;BR /&gt;---- script starts ----- &lt;BR /&gt;#!/bin/sh &lt;BR /&gt;&lt;BR /&gt;find /home -type f -name '.profile' | while read FILE &lt;BR /&gt;do &lt;BR /&gt;grep umask $FILE &amp;gt;/dev/null &lt;BR /&gt;if [ `echo $?` -eq 0 ] &lt;BR /&gt;then &lt;BR /&gt;grep -v umask $FILE &amp;gt; $FILE.new &lt;BR /&gt;cp $FILE.new $FILE &lt;BR /&gt;rm $FILE.new &lt;BR /&gt;fi &lt;BR /&gt;done &lt;BR /&gt;----- script ends ------ &lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 05 Aug 2002 20:17:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780087#M832789</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-05T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780088#M832790</link>
      <description>Bingo!  The script ran flawlessly.  Thank you for your help.  Sorry it took so long to work out the details, but you saved me lots of time through it all!</description>
      <pubDate>Mon, 05 Aug 2002 20:36:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780088#M832790</guid>
      <dc:creator>Jim Lewis_8</dc:creator>
      <dc:date>2002-08-05T20:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780089#M832791</link>
      <description>Jim,&lt;BR /&gt;&lt;BR /&gt;I'm glad that I could help.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 05 Aug 2002 20:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780089#M832791</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-08-05T20:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: edit on .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780090#M832792</link>
      <description>#gets all home directories from /etc/passwd&lt;BR /&gt;&lt;BR /&gt;cat /etc/passwd|awk -F: '{print $6}'|while read i&lt;BR /&gt;do&lt;BR /&gt;#safe a copy of each .profile to .profile.org&lt;BR /&gt;cp ${i}/.profile ${i}/.profile.org&lt;BR /&gt;&lt;BR /&gt;#removes the line with umask in profile.new&lt;BR /&gt;cat ${i}/.profile |grep -v umask &amp;gt; ${i}/profile.new&lt;BR /&gt;&lt;BR /&gt;#moves new profile to .profile&lt;BR /&gt;mv ${i}/profile.new ${i}/.profile&lt;BR /&gt;done</description>
      <pubDate>Wed, 07 Aug 2002 13:08:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/edit-on-profile/m-p/2780090#M832792</guid>
      <dc:creator>Charles Akonnor</dc:creator>
      <dc:date>2002-08-07T13:08:07Z</dc:date>
    </item>
  </channel>
</rss>

