<?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: root cannot use the function of  recalling history command ! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676470#M244666</link>
    <description>Yes! It indeed was written in "set -o vi " in my  .profile (but in forum I just made a clerical error)! And also my .sh_history file  exists!&lt;BR /&gt;  Does the  root account that firstly logins to system really cannot  use the function of recalling history commands?! &lt;BR /&gt;</description>
    <pubDate>Tue, 22 Nov 2005 20:03:05 GMT</pubDate>
    <dc:creator>klbblk</dc:creator>
    <dc:date>2005-11-22T20:03:05Z</dc:date>
    <item>
      <title>root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676465#M244661</link>
      <description>Root cannot use the function of  recalling history command with the following settings in /sbin/sh shell environment:&lt;BR /&gt;  export  EDITOR=vi &lt;BR /&gt;export  HISTFILE=$HOME/.sh_history&lt;BR /&gt;export  HISTSIZE=100&lt;BR /&gt;set  –o  vi&lt;BR /&gt;But  after  I use the command “su  -  oracle “ , and then login  to system  with this another account  under the same /sbin/sh  shell environment:.  I  really  &lt;BR /&gt;can use use the function of  recalling history command (such as ESC+ k)!  I  have already check  all the  .profile  files' contents, and there is no any other special settings  in the  profiles !!&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 07:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676465#M244661</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-22T07:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676466#M244662</link>
      <description>history recalling is specific to user. user1 can not recall the commands of user2 when he logs in as user1. This is UNIX.</description>
      <pubDate>Tue, 22 Nov 2005 07:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676466#M244662</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-11-22T07:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676467#M244663</link>
      <description>Should be "set -o vi" actually...</description>
      <pubDate>Tue, 22 Nov 2005 07:50:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676467#M244663</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2005-11-22T07:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676468#M244664</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;does root have a &lt;BR /&gt;.sh_history&lt;BR /&gt;file? If not, try creating it.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Tue, 22 Nov 2005 07:58:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676468#M244664</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-11-22T07:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676469#M244665</link>
      <description>Your set command came over as "set  o vi" on my browser. Should be "set -o vi", as previously mentioned by Zeev. If that doesn't do it, look for special characters in root's .profile that may be goofing it up.</description>
      <pubDate>Tue, 22 Nov 2005 09:24:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676469#M244665</guid>
      <dc:creator>Andy Torres</dc:creator>
      <dc:date>2005-11-22T09:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676470#M244666</link>
      <description>Yes! It indeed was written in "set -o vi " in my  .profile (but in forum I just made a clerical error)! And also my .sh_history file  exists!&lt;BR /&gt;  Does the  root account that firstly logins to system really cannot  use the function of recalling history commands?! &lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 20:03:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676470#M244666</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-22T20:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676471#M244667</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;root no doubt can use this. Only thing to look into will be the existance of .sh_history file in root's home directory with permission to write for root.&lt;BR /&gt;&lt;BR /&gt;Also after logging in through root find wheather the HISFILE variable is getting exported or not by&lt;BR /&gt;&lt;BR /&gt;#echo $HISTFILE&lt;BR /&gt;&lt;BR /&gt;How are you trying to recall history. For Posix shell it should be using Esc+k whereas for oracle user if the shell is not posix it may be some other key sequence as well.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Tue, 22 Nov 2005 20:13:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676471#M244667</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-11-22T20:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676472#M244668</link>
      <description>I know that the POSIX shell should be /usr/bin/sh, but the other accounts also use the same  shell (/sbin/sh) environment as root's. Why root account cannot use the function of recalling history command while all the other accounts can!?&lt;BR /&gt;&lt;BR /&gt;In additional, I find  that the /sbin/sh and  /usr/bin/sh are two different static program, it means that /sbin/sh is not linked to /usr/bin/sh!&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 21:57:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676472#M244668</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-22T21:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676473#M244669</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;/sbin/sh is the shell for user root whereas /usr/bin/sh is the shell for normal users. These have to be like this only and nothing is unusual in this.&lt;BR /&gt;&lt;BR /&gt;The problem seems to be due to some juck character in .profile or file permission issue only.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Tue, 22 Nov 2005 22:04:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676473#M244669</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-11-22T22:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676474#M244670</link>
      <description>Now I have cleaned the following settings in my root .profile and then manually input them in the current login shell environment,  but the result was  still invalid!&lt;BR /&gt;&lt;BR /&gt;  #export EDITOR=vi &lt;BR /&gt;  #export HISTFILE=$HOME/.sh_history&lt;BR /&gt;  #export HISTSIZE=100&lt;BR /&gt;  #set -o vi &lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 22:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676474#M244670</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-22T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676475#M244671</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;  log in as root&lt;BR /&gt; and try the following command&lt;BR /&gt; cat .sh_history and see wheater ur seeing any lines added to that file..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Nov 2005 02:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676475#M244671</guid>
      <dc:creator>jayachandran.g</dc:creator>
      <dc:date>2005-11-23T02:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676476#M244672</link>
      <description>check root users /etc/passwd file entry. what is the shell it is using. It has to be /sbin/sh.&lt;BR /&gt;&lt;BR /&gt;in $HOME directory of root user / or /root directory touch a file .profile with permission as,&lt;BR /&gt;-r--r--r-- bin:bin permission.&lt;BR /&gt;&lt;BR /&gt;In that put all those as,&lt;BR /&gt;&lt;BR /&gt;echo "history enablement - Started"&lt;BR /&gt;export EDITOR=vi&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;export HISTSIZE=100&lt;BR /&gt;set -o vi&lt;BR /&gt;echo "history enablement - Done"&lt;BR /&gt;&lt;BR /&gt;and save it.&lt;BR /&gt;&lt;BR /&gt;Login with new terminal with root user. You can see history enablement * messages.&lt;BR /&gt;&lt;BR /&gt;# ls&lt;BR /&gt;# hostname&lt;BR /&gt;# history&lt;BR /&gt;it will give details.&lt;BR /&gt;&lt;BR /&gt;Another check point:&lt;BR /&gt;# alias&lt;BR /&gt;&lt;BR /&gt;Do you have like,&lt;BR /&gt;history='fc -l'&lt;BR /&gt;&lt;BR /&gt;it has to be there.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Nov 2005 04:50:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676476#M244672</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-23T04:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676477#M244673</link>
      <description>HAHA! It's so wonderful!! And also it is too strange that the history recall function can be "unexpected" used after I redo inputing these above settings  at the end of my root .profile  !!  &lt;BR /&gt;&lt;BR /&gt;Why!?  Why it took  no effect when I input the same settings manually!? (I hope that Muthukumar can continue to explain somewhat the result)&lt;BR /&gt;&lt;BR /&gt;Whatever, I should  thank  all of you , espeically for Muthukumar!!!&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Nov 2005 06:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676477#M244673</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-23T06:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676478#M244674</link>
      <description>When you are entering setting manual mode then it is applicable to that specific shell only.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;root-shell1#settings of above&lt;BR /&gt;root-shell1#set -o vi&lt;BR /&gt;root-shell1#ls&lt;BR /&gt;root-shell1#history&lt;BR /&gt;                     1 ls&lt;BR /&gt;&lt;BR /&gt;like that.&lt;BR /&gt;root-shell1#su&lt;BR /&gt;root-shell2#&lt;BR /&gt;&lt;BR /&gt;no settings of root-shell1 will be here. To keep that setting try to put in .profile file of that user or /etc/profile file for all users. (root -&amp;gt; normal user.. normal user1 -&amp;gt; normal user2 and normal user -&amp;gt; root)&lt;BR /&gt;&lt;BR /&gt;To keep that setting for all users then put that settings in /etc/profile.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Wed, 23 Nov 2005 06:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676478#M244674</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-23T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: root cannot use the function of  recalling history command !</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676479#M244675</link>
      <description>To all of you above :&lt;BR /&gt;  I  eventually found my problem why I couldnâ  t use the the function of recalling history command!&lt;BR /&gt;  I  had  made  a  slight  and  ignore  mistake every time  after  I  manually  input  the  same  settings  under  the  shell  environmrnt  prompt  symbol.  But this mistake was indeed â  fatalâ   that  I had not  run the command of history to  wake up  that current shell's history command!!  So after I run the command of history,  the function of recalling history command work normally! That  is  all !&lt;BR /&gt;&lt;BR /&gt;                           Thank all of you very much again, especially Muthukumar!!!&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Nov 2005 00:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/root-cannot-use-the-function-of-recalling-history-command/m-p/3676479#M244675</guid>
      <dc:creator>klbblk</dc:creator>
      <dc:date>2005-11-25T00:05:19Z</dc:date>
    </item>
  </channel>
</rss>

