<?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: TimeZone in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020842#M130397</link>
    <description>Does exporting of anyother vaiables work for root from system prompt say...&lt;BR /&gt;&lt;BR /&gt;#export HELLO=23 &lt;BR /&gt;and display &lt;BR /&gt;#echo $HELLO &lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
    <pubDate>Fri, 11 Jul 2003 00:53:14 GMT</pubDate>
    <dc:creator>Rajeev  Shukla</dc:creator>
    <dc:date>2003-07-11T00:53:14Z</dc:date>
    <item>
      <title>TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020837#M130392</link>
      <description>Guru's,&lt;BR /&gt;  Need some advice on timezone.I always no good at the time.&lt;BR /&gt;&lt;BR /&gt;I have a server which use timezone JST-9.&lt;BR /&gt;&lt;BR /&gt;when I login to my server using my id and issue date , I have as below :&lt;BR /&gt;&lt;BR /&gt;jpamin:/home/malayboy &amp;gt;date&lt;BR /&gt;Fri Jul 11 09:31:08 JST 2003&lt;BR /&gt;&lt;BR /&gt;jpamin:/home/malayboy &amp;gt;env|grep TZ&lt;BR /&gt;TZ=JST-9&lt;BR /&gt;&lt;BR /&gt;But when I logon to root here what I got :&lt;BR /&gt;&lt;BR /&gt;# date&lt;BR /&gt;Thu Jul 10 20:33:11 EDT 2003&lt;BR /&gt;&lt;BR /&gt;# env|grep TZ&lt;BR /&gt;# &lt;BR /&gt;(which TZ are not set).&lt;BR /&gt;&lt;BR /&gt;# export TZ=JST-9&lt;BR /&gt;# env|grep TZ &lt;BR /&gt;# &lt;BR /&gt;(which are still nothing)...&lt;BR /&gt;&lt;BR /&gt;SENARIOS:&lt;BR /&gt;I create a ftp job between two servers running at 2:00am from jpamin to jphafiz using root account.&lt;BR /&gt;&lt;BR /&gt;jphafiz timezone TZ=JSP-9.&lt;BR /&gt;&lt;BR /&gt;Problem : now the job are "hanky panky"..goes crazy..&lt;BR /&gt;&lt;BR /&gt;any document or help or some heavenly light are appreciate...&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 23:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020837#M130392</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-10T23:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020838#M130393</link>
      <description>Here are jpamin /etc/TIMEZONE setting :&lt;BR /&gt;&lt;BR /&gt;# more /etc/TIMEZONE&lt;BR /&gt;TZ=JST-9&lt;BR /&gt;export TZ&lt;BR /&gt;TIMEZONE: END</description>
      <pubDate>Thu, 10 Jul 2003 23:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020838#M130393</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-10T23:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020839#M130394</link>
      <description>See the TIMEZONE vaiable is set in /etc/profile&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;so when you login and the /etc/TIMEZONE file exists it executes that and sets what ever is in that file, but for some reasons it seems by loging as other users it is working but not with root.&lt;BR /&gt;And i know the problem lies in exporting the variables by root. Can you try to export something else say..&lt;BR /&gt;#export HELLO=23&lt;BR /&gt;and display&lt;BR /&gt;#echo $HELLO&lt;BR /&gt;i think there is the problem as root even this wouldn't be working...can you pls check and also check the permissons of /etc, /etc/profile and /etc/TIMEZONE file.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 11 Jul 2003 00:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020839#M130394</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-07-11T00:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020840#M130395</link>
      <description>Hi mB&lt;BR /&gt;&lt;BR /&gt;That's an interesting problem!!  &lt;BR /&gt;I assume from what you said the main issue is the problem setting the correct timezone for root??&lt;BR /&gt;&lt;BR /&gt;I'd look through the /etc/profile, root's .profile and your own .profile to see if there's any references to TZ.  &lt;BR /&gt;&lt;BR /&gt;As you're probably aware TZ is set at login  by /etc/profile sourcing the TZ variable in /etc/TIMEZONE.  This can then be overridden by users setting their own TZ variable in their .profile.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Fri, 11 Jul 2003 00:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020840#M130395</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-07-11T00:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020841#M130396</link>
      <description>Hi Guy's,&lt;BR /&gt;   I manually put below :&lt;BR /&gt;&lt;BR /&gt;export TZ=JST-9&lt;BR /&gt;&lt;BR /&gt;in the jpadmin root .profile but still date command give me EDT as the time zone.&lt;BR /&gt;&lt;BR /&gt;# date&lt;BR /&gt;Thu Jul 10 21:32:56 EDT 2003&lt;BR /&gt;&lt;BR /&gt;Here are the permission on the file :&lt;BR /&gt;&lt;BR /&gt;# ll profile&lt;BR /&gt;-r--r--r--   1 root       bin           2689 Aug  9  2001 profile&lt;BR /&gt;# pwd&lt;BR /&gt;/etc&lt;BR /&gt;# ll TIMEZONE&lt;BR /&gt;-r--r--r--   1 bin        bin             19 Apr  9  2001 TIMEZONE&lt;BR /&gt;&lt;BR /&gt;# ll|grep etc&lt;BR /&gt;dr-xr-xr-x  28 root       bin           6144 Jul  8 04:12 etc&lt;BR /&gt;&lt;BR /&gt;any document which I could look.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jul 2003 00:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020841#M130396</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-11T00:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020842#M130397</link>
      <description>Does exporting of anyother vaiables work for root from system prompt say...&lt;BR /&gt;&lt;BR /&gt;#export HELLO=23 &lt;BR /&gt;and display &lt;BR /&gt;#echo $HELLO &lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Fri, 11 Jul 2003 00:53:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020842#M130397</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-07-11T00:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020843#M130398</link>
      <description>Rajeev,&lt;BR /&gt;  Really appreciate your response.But here are the testing . &lt;BR /&gt;&lt;BR /&gt;# export OK=mB&lt;BR /&gt;# echo $OK &lt;BR /&gt;mB&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Fri, 11 Jul 2003 00:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020843#M130398</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-11T00:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020844#M130399</link>
      <description>Have to admit mB I'm not sure of the problem.  &lt;BR /&gt;You could also look at /usr/lib/tztab file. &lt;BR /&gt;Is JST defined in here? &lt;BR /&gt;Can you set the TZ for root using another timezone defined in tztab??&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con</description>
      <pubDate>Fri, 11 Jul 2003 00:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020844#M130399</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-07-11T00:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020845#M130400</link>
      <description>Thats very strange..then atleast this &lt;BR /&gt;# export TZ=JST-9 &lt;BR /&gt;# echo $TZ &lt;BR /&gt;&lt;BR /&gt;should work...i wonder why its playing..&lt;BR /&gt;&lt;BR /&gt;Or one more option you might give a try is set the time zone again again using&lt;BR /&gt;/sbin/set_parms timezone&lt;BR /&gt;and reboot the machine and see how is goes..&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Rajeev&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jul 2003 01:24:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020845#M130400</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-07-11T01:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020846#M130401</link>
      <description>Rajeez,&lt;BR /&gt;&lt;BR /&gt;Yap below work:&lt;BR /&gt;  #export TZ=JST-9 &lt;BR /&gt;  # echo $TZ&lt;BR /&gt;    JSP-9&lt;BR /&gt;&lt;BR /&gt;but env|grep TZ&lt;BR /&gt;&lt;BR /&gt;nothing showed...&lt;BR /&gt;&lt;BR /&gt;my brain are melting now ...&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB</description>
      <pubDate>Fri, 11 Jul 2003 01:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020846#M130401</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-11T01:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020847#M130402</link>
      <description>Are you using Xwindows (as in CDE)? You may not be running ANY profiles at all. Are you using /sbin/sh for root? If not, change it back to /sbin/sh (which is NOT a Bourne shell). How do you login as an ordinary user versus root? Is it through a telnet connection or rlogin or remsh or ssh? Or do you login by borrowing a terminal emulator from the server (such as dtterm, xterm or hpterm)?&lt;BR /&gt;&lt;BR /&gt;The question is whether /etc/profile and then .profile are actually run during login. Start with some echo statements in /etc/profile and .profile to see if root actually does a login.&lt;BR /&gt;&lt;BR /&gt;As far as the ftp job at 2am, I suspect that this is a cron job...VERY IMPORTANT: cron never performs a login so the environment for a cron job is very small. From the man page for crontab &lt;BR /&gt;&lt;BR /&gt;"cron supplies a default environment for every shell, defining:&lt;BR /&gt;&lt;BR /&gt;           HOME=user's-home-directory&lt;BR /&gt;           LOGNAME=user's-login-id&lt;BR /&gt;           PATH=/usr/bin:/usr/sbin:.&lt;BR /&gt;           SHELL=/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;      Users who desire to have their .profile executed must explicitly do so in the crontab entry or in a script called by the entry."&lt;BR /&gt;&lt;BR /&gt;In other words, TZ must be set (along with any other parameters you need) inside your script or program.</description>
      <pubDate>Fri, 11 Jul 2003 01:53:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020847#M130402</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-11T01:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020848#M130403</link>
      <description>Small security gotcha.&lt;BR /&gt;&lt;BR /&gt;You should NOT allow ftp on either box to the root user.&lt;BR /&gt;&lt;BR /&gt;Its a major security hazard, especially if there is a remote or public connection between the machines.&lt;BR /&gt;&lt;BR /&gt;Most scripted ftp scenarios have the root password hard coded in the script. Also very bad.&lt;BR /&gt;&lt;BR /&gt;Install secure shell on both machines and follow Chris Vail's guide to exchanging public keys.  Then you can use the scp command to transfer files.&lt;BR /&gt;&lt;BR /&gt;Secure shell&lt;BR /&gt;&lt;A href="http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA" target="_blank"&gt;http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=T1471AA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This of course does not earn points or solve your problem. As to that, here are some interesting docs.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparam.TimeZone.html&amp;amp;searchterms=Timezone%7cTZ&amp;amp;queryid=20030710-210606" target="_blank"&gt;http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/939/KCParms/KCparam.TimeZone.html&amp;amp;searchterms=Timezone%7cTZ&amp;amp;queryid=20030710-210606&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/TKP-90202/TKP-90202_top.html&amp;amp;con=/hpux/onlinedocs/TKP-90202/00/01/166-con.html&amp;amp;toc=/hpux/onlinedocs/TKP-90202/00/01/166-toc.html&amp;amp;searchterms=Timezone%7cTZ&amp;amp;queryid=20030710-210606" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/TKP-90202/TKP-90202_top.html&amp;amp;con=/hpux/onlinedocs/TKP-90202/00/01/166-con.html&amp;amp;toc=/hpux/onlinedocs/TKP-90202/00/01/166-toc.html&amp;amp;searchterms=Timezone%7cTZ&amp;amp;queryid=20030710-210606&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Still, what about clock drift.  That can still drive you up a proverbial wall.  Well, Dr. David Mills invented a solution.  ntp&lt;BR /&gt;&lt;BR /&gt;Here is some HP doc on that plus links to Dr. Mills' work.&lt;BR /&gt;&lt;BR /&gt;Configuration&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/63-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/63-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/63-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/63-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Advanced topics&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/65-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/65-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/65-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/65-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Troubleshooting&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/65-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/65-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/65-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/65-toc.html&amp;amp;searchterms=configuration%7cntp&amp;amp;queryid=20030710-210811&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Dr. Mills stuff&lt;BR /&gt;&lt;A href="http://www.ntp.org/documentation.html" target="_blank"&gt;http://www.ntp.org/documentation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Time Servers&lt;BR /&gt;&lt;A href="http://www.tymserve.com/success_tva.html" target="_blank"&gt;http://www.tymserve.com/success_tva.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a think outside the box answer.  Set both servers to Greenwich Mean Time, do ntp and &lt;BR /&gt;pick close time servers.&lt;BR /&gt;&lt;BR /&gt;Now this post is a mouthful isn't it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 11 Jul 2003 02:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020848#M130403</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-07-11T02:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020849#M130404</link>
      <description>Hi master bill,&lt;BR /&gt;   Thanks for the response.Appreciate everybody response although every are busy I'm sure.&lt;BR /&gt;&lt;BR /&gt;To answer to your question :&lt;BR /&gt;&lt;BR /&gt;Q) Are you using Xwindows (as in CDE)?&lt;BR /&gt;A) No , I'm running Reflection and telnet to the box.No CDE&lt;BR /&gt;&lt;BR /&gt;Q) Are you using /sbin/sh for root?&lt;BR /&gt;No.&lt;BR /&gt;A) # echo $SHELL&lt;BR /&gt;&lt;BR /&gt;Q) How do you login as an ordinary user versus root? Is it through a telnet connection or rlogin or remsh or ssh? Or do you login by borrowing a terminal emulator from the server (such as dtterm, xterm or hpterm)? &lt;BR /&gt;A) All the same using telnet via reflection.&lt;BR /&gt;&lt;BR /&gt;There are new finding :&lt;BR /&gt;&lt;BR /&gt;if I logon as root, from su:&lt;BR /&gt;&lt;BR /&gt;if I do :&lt;BR /&gt;&lt;BR /&gt;# export TZ=JSP-9&lt;BR /&gt;# date&lt;BR /&gt;Thu Jul 10 22:59:17 EDT 2003&lt;BR /&gt;# echo $SHELL&lt;BR /&gt;/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;I still got that.&lt;BR /&gt;&lt;BR /&gt;But if I changed the &lt;BR /&gt;to sh.&lt;BR /&gt;&lt;BR /&gt;The above are correct.&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;mB&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jul 2003 02:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020849#M130404</guid>
      <dc:creator>malay boy</dc:creator>
      <dc:date>2003-07-11T02:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020850#M130405</link>
      <description>Hi mB,&lt;BR /&gt;&lt;BR /&gt;From your description, it's a problem caused by your shell. Please check what shell your are use:&lt;BR /&gt;#ps|grep $$|awk '{print $4}'&lt;BR /&gt;sh&lt;BR /&gt;#badcommand&lt;BR /&gt;/sbin/sh: badcommand : not found&lt;BR /&gt;&lt;BR /&gt;For root, the default shell must be /sbin/sh, that's exist in /etc/passwd, last field!&lt;BR /&gt;&lt;BR /&gt;-ux</description>
      <pubDate>Fri, 11 Jul 2003 02:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020850#M130405</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-07-11T02:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: TimeZone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020851#M130406</link>
      <description>The first problem is your use of su. NEVER run su without using the - option! Without using the - option, you are NOT really logging in, you are changing user ID's but /etc/profile and .profile will not be run and you will NOT change shells to the one specified for root.&lt;BR /&gt;&lt;BR /&gt;To find out your current shell, just type:&lt;BR /&gt;&lt;BR /&gt;echo $0&lt;BR /&gt;&lt;BR /&gt;The fact that echo $SHELL does not produce anything indicates an abnormal login procedure. To see the shell that a current user is supposed to use:&lt;BR /&gt;&lt;BR /&gt;grep ^$(whoami): /etc/passwd | cut -f7 -d:&lt;BR /&gt;&lt;BR /&gt;Using su without the - is a bad security risk since su'ing to root can allow a hacker to compromise root's environment.</description>
      <pubDate>Fri, 11 Jul 2003 10:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone/m-p/3020851#M130406</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-07-11T10:23:19Z</dc:date>
    </item>
  </channel>
</rss>

