<?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: CDE profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708417#M903871</link>
    <description>This link discusses global dtprofiles.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20f73c853cd9d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20f73c853cd9d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A global .profile can be played with in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Bill</description>
    <pubDate>Tue, 23 Apr 2002 06:41:36 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2002-04-23T06:41:36Z</dc:date>
    <item>
      <title>CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708414#M903868</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Could any one help me try and resolve a problem with login onto a x-terminal which CDE is downloaded from the K580 machine. The user logs on using his user-name and password.&lt;BR /&gt;When I open an hp-term window, I am still using another's log on profile. The only way to log on to my own user profile is to exit CDE, but doing this disrupts the background applications which would still be running. Is there a Script that once opening an hp-term window it will check to verify if the user logging on is the same user that is already logged on, and if so continue with his own .profile, should this not be the case, then user must not be allowed to access an hp-term window.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Apr 2002 18:02:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708414#M903868</guid>
      <dc:creator>Chris Frangandonis</dc:creator>
      <dc:date>2002-04-22T18:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708415#M903869</link>
      <description>Hi, Im not sure if this is what you are asking for, but to read the .profile file when logging into cde you need to put &lt;BR /&gt;&lt;BR /&gt;DTSOURCEPROFILE=true&lt;BR /&gt;&lt;BR /&gt;in your .dtprofile &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2002 05:31:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708415#M903869</guid>
      <dc:creator>Tore_1</dc:creator>
      <dc:date>2002-04-23T05:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708416#M903870</link>
      <description>Hi Tore,&lt;BR /&gt;&lt;BR /&gt;Thanks, yes but should I also edit all the users .profile and insert $DT in each and how ?&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 23 Apr 2002 06:07:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708416#M903870</guid>
      <dc:creator>Chris Frangandonis</dc:creator>
      <dc:date>2002-04-23T06:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708417#M903871</link>
      <description>This link discusses global dtprofiles.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20f73c853cd9d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x20f73c853cd9d5118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;A global .profile can be played with in /etc/profile&lt;BR /&gt;&lt;BR /&gt;Bill</description>
      <pubDate>Tue, 23 Apr 2002 06:41:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708417#M903871</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-04-23T06:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708418#M903872</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;here is the full info&lt;BR /&gt;&lt;BR /&gt;  The best way to affect the shell environment inside the&lt;BR /&gt;    terminal windows is to use the following method. This tells the&lt;BR /&gt;    terminal window application (dtterm, hpterm, or xterm) to have&lt;BR /&gt;    the shell inside the window be a loginshell. A loginshell by&lt;BR /&gt;    default sources the profile. This will happen as any terminal&lt;BR /&gt;    window on the system is opened inside a CDE session.&lt;BR /&gt;&lt;BR /&gt;    1. On a system-wide basis, enable the "loginShell" resource for&lt;BR /&gt;    the terminal emulators by creating sys.resources (chmod 644) in&lt;BR /&gt;    /etc/dt/config/C/ containing:   *loginShell:  True&lt;BR /&gt;&lt;BR /&gt;    2. On a per-user basis, create a $HOME/.Xdefaults containing:&lt;BR /&gt;    *loginShell:  True&lt;BR /&gt;&lt;BR /&gt;    Both of these changes will take effect with the next login to CDE.&lt;BR /&gt;    If the same environment is needed for any terminal window run&lt;BR /&gt;    on the system (even those started outside a CDE session) then&lt;BR /&gt;    this same resource line:   *loginShell:  True&lt;BR /&gt;    can be added to the app-defaults files for the terminal&lt;BR /&gt;    window applications. These are located in:&lt;BR /&gt;    /usr/lib/X11/app-defaults/HPterm (create it if it does not exist)&lt;BR /&gt;    /usr/lib/X11/app-defaults/xterm&lt;BR /&gt;    /etc/dt/app-defaults/$LANG/Dtterm (where $LANG=C if US-English&lt;BR /&gt;    is the default system language, the app-defaults/C directory&lt;BR /&gt;    may not exist by default on the system. Create them and copy&lt;BR /&gt;    the Dtterm file from /usr/dt/app-defaults/C if that is the case).&lt;BR /&gt;&lt;BR /&gt;    The "*loginShell" resource will configure the terminal&lt;BR /&gt;    emulators (dtterm, hpterm, xterm) to behave as if the user had&lt;BR /&gt;    telnet-ed or rlogin-ed to the system.  This means that the&lt;BR /&gt;    default sequence of reading /etc/profile, etc. will occur each&lt;BR /&gt;    time a terminal window is opened.  The environment in the shell&lt;BR /&gt;    window will NOT be the same as that of the CDE session (dtsession).&lt;BR /&gt;&lt;BR /&gt;    If PATHS or environment variables need to be set for the dtsession&lt;BR /&gt;    as a whole (for applications started as actions from the CDE&lt;BR /&gt;    front panel or CDE toolboxes), then one of the following three&lt;BR /&gt;    methods are advised:&lt;BR /&gt;&lt;BR /&gt;    a) export the environment variable directly from the dtprofile.&lt;BR /&gt;&lt;BR /&gt;    b) create a ksh script and place it in /etc/dt/config/Xsession.d&lt;BR /&gt;&lt;BR /&gt;    c) set DTSOURCEPROFILE=true and then alter the env variable in&lt;BR /&gt;       the profile.&lt;BR /&gt;&lt;BR /&gt;   WARNING: Using syntax that needs stdin, stdout, stderr should&lt;BR /&gt;     be strictly avoided. Again stdin, stderr, stdout or ttys are&lt;BR /&gt;     not available at this point in the login process. It should be&lt;BR /&gt;     limited to exporting an environment variables. Again none of the&lt;BR /&gt;     three methods are needed if the only thing that needs to be modified&lt;BR /&gt;     is the shell environment inside terminal emulator windows.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;              Steve Steel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Apr 2002 09:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708418#M903872</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-04-23T09:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708419#M903873</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Nice one, sorry I got lost. On a per-user basis each user is created with a .profile, should I create a .Xdefaults for each with the same contents as .profile !!!. Could you please explain *loginShell in a simpler text.&lt;BR /&gt;&lt;BR /&gt;Thanking You&lt;BR /&gt;Chris</description>
      <pubDate>Tue, 23 Apr 2002 18:26:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708419#M903873</guid>
      <dc:creator>Chris Frangandonis</dc:creator>
      <dc:date>2002-04-23T18:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: CDE profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708420#M903874</link>
      <description>Steve's suggestion is bang on .... see man dtterm wrt *loginShell .... but to cut a long story short when a user log's in via CDE their .profile is read once, dtterm,hpterm or xterms do not by default read or re-read users .profiles ... so if you login as userA and then su or login to userB you continue using the contents of userA's .profile.&lt;BR /&gt;&lt;BR /&gt;All you need to do is create an .Xdefaults file in $HOME and add *loginShell : true ... this will force terms to read users .profiles .... nothing else need go into .Xdefaults.&lt;BR /&gt;&lt;BR /&gt;(exit out of CDE and then back in for the change to take effect)&lt;BR /&gt;&lt;BR /&gt;hope that's clearer ?</description>
      <pubDate>Wed, 24 Apr 2002 06:59:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cde-profile/m-p/2708420#M903874</guid>
      <dc:creator>Alex Glennie</dc:creator>
      <dc:date>2002-04-24T06:59:24Z</dc:date>
    </item>
  </channel>
</rss>

