<?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: Second file  /etc/profile ??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742336#M786435</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;      Include the if statement at the end of the /etc/profile, thereby it can reinitialize the Variables if it was already initialized by /etc/profile. &lt;BR /&gt;&lt;BR /&gt;   Note, before making the change make sure, you make a copy of the actual /etc/profile file somewhere safe,&lt;BR /&gt;&lt;BR /&gt;    While testing, include the follwoing command in /etc/profile2&lt;BR /&gt;&lt;BR /&gt;echo "excuting /etc/profile2"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
    <pubDate>Thu, 02 Mar 2006 04:07:24 GMT</pubDate>
    <dc:creator>Senthil Kumar .A_1</dc:creator>
    <dc:date>2006-03-02T04:07:24Z</dc:date>
    <item>
      <title>Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742326#M786425</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Is it possible to create a second global profile as /etc/profile2&lt;BR /&gt;and have users with certain group go thru&lt;BR /&gt;this profile2 and skip the /etc/profile.&lt;BR /&gt;&lt;BR /&gt;Please advice.&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Tom&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 02:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742326#M786425</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2006-03-02T02:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742327#M786426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do not think it is possible. ANyways what is that which require this?&lt;BR /&gt;&lt;BR /&gt;A variable set in the .profile of the user will override the setting of /etc/profile not requiring this.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Thu, 02 Mar 2006 03:10:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742327#M786426</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2006-03-02T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742328#M786427</link>
      <description>Tom,&lt;BR /&gt;the idea of /etc/profile is that is a global profile.&lt;BR /&gt;I would suggest you change the /etc/profile to include an if statement and split the executaion path by user group.&lt;BR /&gt;That way you still maintain the global profile idea, but can customise for your user group.&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 03:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742328#M786427</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T03:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742329#M786428</link>
      <description>Hi Tom, &lt;BR /&gt;&lt;BR /&gt;I dont think it is possible to do that. Anyways, you have /etc/profile and $HOME/.profile files, you can do the modification with user's profile which is safer . &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Thu, 02 Mar 2006 03:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742329#M786428</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-03-02T03:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742330#M786429</link>
      <description>I think Tom wants all users in a specific group to execute /etc/profile2.&lt;BR /&gt;Otherwise he has to configure the .profile in each of that groups user directories.</description>
      <pubDate>Thu, 02 Mar 2006 03:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742330#M786429</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-03-02T03:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742331#M786430</link>
      <description>Thank you for your quick replies&lt;BR /&gt;&lt;BR /&gt;My purpose is to have different groups connect to different profiles but keep the /etc/profile as is. This is production box and i do not want to mess up this /etc/profile.&lt;BR /&gt;please give me advice on how to modify /etc/profile.&lt;BR /&gt;&lt;BR /&gt;at the begining of /etc/profile, i will have if .. else statement.&lt;BR /&gt;if the condition met then it would execute the new /etc/profile_new   and then execute local user profile.&lt;BR /&gt;if not it just continue /etc/profile.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 02 Mar 2006 03:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742331#M786430</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2006-03-02T03:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742332#M786431</link>
      <description>Hi Tom,&lt;BR /&gt;&lt;BR /&gt; Here is the if statement u are looking for..&lt;BR /&gt;&lt;BR /&gt; first create a file say /etc/special_group&lt;BR /&gt;&lt;BR /&gt; Let this file be filled with the name of the users for whom the /etc/profile2 needs to be executed. One user per line.&lt;BR /&gt;&lt;BR /&gt;  Now in /etc/profile include this if statement,&lt;BR /&gt;&lt;BR /&gt;if [ `grep -q "$LOGNAME" /etc/special_group`]&lt;BR /&gt;then&lt;BR /&gt;. /etc/profile2&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;The character in front of grep is "back quote" used for command substitution not "single qoute". This character appears before the "1" key.&lt;BR /&gt;&lt;BR /&gt;  Contact ,if the test fails.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Thu, 02 Mar 2006 03:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742332#M786431</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-02T03:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742333#M786432</link>
      <description>Hi again,&lt;BR /&gt;&lt;BR /&gt;NOTE:&lt;BR /&gt;     inside the If statement in the above response there is a space between the "." and "/etc/profile2",&lt;BR /&gt;&lt;BR /&gt; this is important, because. this will make sure that the profile2 is executed in the parent process environment, instead of spawing the child shell(which would be useless in this case).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Thu, 02 Mar 2006 03:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742333#M786432</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-02T03:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742334#M786433</link>
      <description>Hi Senthil Kumar .A&lt;BR /&gt;&lt;BR /&gt;I do not want to continue execute the /etc/profile after &lt;BR /&gt;. /etc/profile2&lt;BR /&gt;&lt;BR /&gt;should i insert a line &lt;BR /&gt;break in here&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Tom&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ `grep -q "$LOGNAME" /etc/special_group`]&lt;BR /&gt;then&lt;BR /&gt;. /etc/profile2&lt;BR /&gt;&lt;BR /&gt;break&lt;BR /&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2006 03:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742334#M786433</guid>
      <dc:creator>tom quach_1</dc:creator>
      <dc:date>2006-03-02T03:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742335#M786434</link>
      <description>Just a sec, I will check my profile file and tell u where exactly to insert, so that it is effective.</description>
      <pubDate>Thu, 02 Mar 2006 04:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742335#M786434</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-02T04:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Second file  /etc/profile ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742336#M786435</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;      Include the if statement at the end of the /etc/profile, thereby it can reinitialize the Variables if it was already initialized by /etc/profile. &lt;BR /&gt;&lt;BR /&gt;   Note, before making the change make sure, you make a copy of the actual /etc/profile file somewhere safe,&lt;BR /&gt;&lt;BR /&gt;    While testing, include the follwoing command in /etc/profile2&lt;BR /&gt;&lt;BR /&gt;echo "excuting /etc/profile2"&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Senthil Kumar .A</description>
      <pubDate>Thu, 02 Mar 2006 04:07:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/second-file-etc-profile/m-p/3742336#M786435</guid>
      <dc:creator>Senthil Kumar .A_1</dc:creator>
      <dc:date>2006-03-02T04:07:24Z</dc:date>
    </item>
  </channel>
</rss>

