<?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: how to hide history in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355257#M35165</link>
    <description>you should not login as root, use sudo. that will allow you to run root commands and your history will be yours only.&lt;BR /&gt;&lt;BR /&gt;why are you using root? did you admin windows machines previously? unix/linux is an whole other world with other rules.</description>
    <pubDate>Wed, 11 Feb 2009 08:49:46 GMT</pubDate>
    <dc:creator>dirk dierickx</dc:creator>
    <dc:date>2009-02-11T08:49:46Z</dc:date>
    <item>
      <title>how to hide history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355254#M35162</link>
      <description>HI,&lt;BR /&gt;when we login with root and apply any command default its store in history and later we can check it through history command, i would like to hide it, i know we can use history -c but i want to keep all history only for me and no one else can see it, how i can do this for same root user, any idea to anyone, thanks,&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Feb 2009 06:31:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355254#M35162</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-02-10T06:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to hide history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355255#M35163</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;What you can do is to have one history file for each user connected with root. Try to connect in two terminal and have a look to your tty.&lt;BR /&gt;&lt;BR /&gt;Here is what I use to do to separate the history file for each root connection. &lt;BR /&gt;&lt;BR /&gt;In your .profile put this :&lt;BR /&gt;&lt;BR /&gt;HISTFILE=/root/.sh_history/.sh_history.`tty|sed 's/\///g'|cut -c4-`&lt;BR /&gt;PS1="$(hostname):\$PWD\#"&lt;BR /&gt;export HISTFILE PS1&lt;BR /&gt;&lt;BR /&gt;You'll probably have to tune it according to the shell you're using.&lt;BR /&gt;&lt;BR /&gt;Hope this help&lt;BR /&gt;Kenavo&lt;BR /&gt;Pat&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:35:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355255#M35163</guid>
      <dc:creator>Patrice Le Guyader</dc:creator>
      <dc:date>2009-02-10T10:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to hide history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355256#M35164</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Write a cron job to copy it off to a location only root can access.&lt;BR /&gt;&lt;BR /&gt;You can not hide a file from the user that creates it without denying that user access and ending the logging process.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 10 Feb 2009 11:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355256#M35164</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-10T11:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to hide history</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355257#M35165</link>
      <description>you should not login as root, use sudo. that will allow you to run root commands and your history will be yours only.&lt;BR /&gt;&lt;BR /&gt;why are you using root? did you admin windows machines previously? unix/linux is an whole other world with other rules.</description>
      <pubDate>Wed, 11 Feb 2009 08:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-hide-history/m-p/4355257#M35165</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-02-11T08:49:46Z</dc:date>
    </item>
  </channel>
</rss>

