<?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: Execute the .profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897090#M282377</link>
    <description>The problem is that DTSOURCEPROFILE is an incomplete solution. You want a 'normal' login like telnet. That means first /etc/profile is run, then .profile (for POSIX shells like ksh). What your users are expecting is a 'normal' Unix login which (for POSIX shells) first runs /etc/profile and then .profile (DTSOURCEPROFILE doesn't run /etc/profile). It turns out that the default for all terminal emulators in Xwindows is to startup WITHOUT executing the usual profiles. To fix this, put this into every HOME directory for every user:&lt;BR /&gt;&lt;BR /&gt;echo "*loginShell: true" &amp;gt;&amp;gt; $HOME/.Xdefaults&lt;BR /&gt;&lt;BR /&gt;Now terminal emulators such as hpterm, xterm or dtterm will login as expected and will have the same profiles as a telnet connection. You can also add additional resource settings for the emulators or other Xwindow applications. For example, the contents might look like this:&lt;BR /&gt;&lt;BR /&gt;*loginShell: true&lt;BR /&gt;HPterm*scrollBar: true&lt;BR /&gt;HPterm*saveLines: 10s&lt;BR /&gt;HPterm*background: navy&lt;BR /&gt;HPterm*foreground: white&lt;BR /&gt;Xterm*background: darkslateblue&lt;BR /&gt;Xterm*foreground: white&lt;BR /&gt;Xterm*saveLines: 10s&lt;BR /&gt;Xterm*scrollBar: true&lt;BR /&gt;Dtterm*saveLines: 10s&lt;BR /&gt;Dtterm*scrollBar: true&lt;BR /&gt;&lt;BR /&gt;and after adding these lines to .Xdefaults, all hpterm, xterm and dtterm windows will have a scroll bar plus 10 screens (800 lines) of history. hpterm will have a dark blue with white letter color scheme while xterm will have a more gray-blue background with white letters. dtterm will match the overall CDE color scheme.&lt;BR /&gt;&lt;BR /&gt;.Xdefaults is one of the many ways to set window decorations or resources. Look at the man page for hpterm and you'll see the dozens of options and resources that can be set. They can be set generically for every window or they can be set for a window that has a specific title. man X is a start but a good book on Xwindows will also be worthwhile.</description>
    <pubDate>Mon, 13 Nov 2006 08:11:35 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2006-11-13T08:11:35Z</dc:date>
    <item>
      <title>Execute the .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897088#M282375</link>
      <description>Dear All&lt;BR /&gt;Users .dtprofile I have uncommented the DTSOURCE line. Also in the .profile of the user I have set the the following in .profile of the users.&lt;BR /&gt;alias su="su -".&lt;BR /&gt;HISTFILE=/.hist/${HOME}/`who am i|awk '{ print $1}'`-`date +%d:%m:%y.%H:%M`&lt;BR /&gt;export HISTFILE&lt;BR /&gt;HISTSIZE=500&lt;BR /&gt;export HISTSIZE&lt;BR /&gt;&lt;BR /&gt;User logs in through through CDE or any desktop environment [like reflection, xbrowser etc] &lt;BR /&gt;When the user su's using "su - root" then the history file records the activities but when he su's using "su root" it does not log his activities in the History file. &lt;BR /&gt;&lt;BR /&gt;How can I get the system to log the activities when he logs through "su root" in the hsitory file.&lt;BR /&gt;Thanks&lt;BR /&gt;Faizer</description>
      <pubDate>Mon, 13 Nov 2006 07:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897088#M282375</guid>
      <dc:creator>Faizer Jameel</dc:creator>
      <dc:date>2006-11-13T07:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Execute the .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897089#M282376</link>
      <description>Faizer,&lt;BR /&gt;why do you not want to use sudo as suggested in reply to your earlier thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1022171" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1022171&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Other solutions/explanations are in :&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=811081" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=811081&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=80512" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=80512&lt;/A&gt;</description>
      <pubDate>Mon, 13 Nov 2006 07:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897089#M282376</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-11-13T07:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Execute the .profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897090#M282377</link>
      <description>The problem is that DTSOURCEPROFILE is an incomplete solution. You want a 'normal' login like telnet. That means first /etc/profile is run, then .profile (for POSIX shells like ksh). What your users are expecting is a 'normal' Unix login which (for POSIX shells) first runs /etc/profile and then .profile (DTSOURCEPROFILE doesn't run /etc/profile). It turns out that the default for all terminal emulators in Xwindows is to startup WITHOUT executing the usual profiles. To fix this, put this into every HOME directory for every user:&lt;BR /&gt;&lt;BR /&gt;echo "*loginShell: true" &amp;gt;&amp;gt; $HOME/.Xdefaults&lt;BR /&gt;&lt;BR /&gt;Now terminal emulators such as hpterm, xterm or dtterm will login as expected and will have the same profiles as a telnet connection. You can also add additional resource settings for the emulators or other Xwindow applications. For example, the contents might look like this:&lt;BR /&gt;&lt;BR /&gt;*loginShell: true&lt;BR /&gt;HPterm*scrollBar: true&lt;BR /&gt;HPterm*saveLines: 10s&lt;BR /&gt;HPterm*background: navy&lt;BR /&gt;HPterm*foreground: white&lt;BR /&gt;Xterm*background: darkslateblue&lt;BR /&gt;Xterm*foreground: white&lt;BR /&gt;Xterm*saveLines: 10s&lt;BR /&gt;Xterm*scrollBar: true&lt;BR /&gt;Dtterm*saveLines: 10s&lt;BR /&gt;Dtterm*scrollBar: true&lt;BR /&gt;&lt;BR /&gt;and after adding these lines to .Xdefaults, all hpterm, xterm and dtterm windows will have a scroll bar plus 10 screens (800 lines) of history. hpterm will have a dark blue with white letter color scheme while xterm will have a more gray-blue background with white letters. dtterm will match the overall CDE color scheme.&lt;BR /&gt;&lt;BR /&gt;.Xdefaults is one of the many ways to set window decorations or resources. Look at the man page for hpterm and you'll see the dozens of options and resources that can be set. They can be set generically for every window or they can be set for a window that has a specific title. man X is a start but a good book on Xwindows will also be worthwhile.</description>
      <pubDate>Mon, 13 Nov 2006 08:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-the-profile/m-p/3897090#M282377</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-11-13T08:11:35Z</dc:date>
    </item>
  </channel>
</rss>

