<?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: file access info in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560895#M838003</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For history we export these two lines in /etc/profile for all users or for a indivisual user in his .profile.&lt;BR /&gt;&lt;BR /&gt;export HISTFILE="/path_to_file/$LOGNAME"&lt;BR /&gt;export HISTSIZE=1000&lt;BR /&gt;&lt;BR /&gt;Here /path_to_file directory should be writable by user for which you are exporting history.&lt;BR /&gt;This will create a file with user name in this directory.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
    <pubDate>Thu, 09 Jun 2005 04:38:56 GMT</pubDate>
    <dc:creator>Devender Khatana</dc:creator>
    <dc:date>2005-06-09T04:38:56Z</dc:date>
    <item>
      <title>file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560891#M837999</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;  Just curious to know, is there anyway I can know when a executable file has been used? and if it was called by another program can I know which program was doing the call? &lt;BR /&gt;&lt;BR /&gt;  If not can I write a program to keep any of this future information in a log file, how can this be done?&lt;BR /&gt;&lt;BR /&gt;Thank u&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jun 2005 03:20:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560891#M837999</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-06-09T03:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560892#M838000</link>
      <description>You can get the file access information with,&lt;BR /&gt;&lt;BR /&gt;ls -lu &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;We can find the execution of specific file with history file or system auditing.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/FILENAME&gt;</description>
      <pubDate>Thu, 09 Jun 2005 03:30:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560892#M838000</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-09T03:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560893#M838001</link>
      <description>Hi Muthu,&lt;BR /&gt;&lt;BR /&gt;  Thank you for the info. Can you elaborate on the latter suggestion? does HPUX has a history or audit application i can utilise in this case. Or should I write a script to do this?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Henry&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jun 2005 04:24:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560893#M838001</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-06-09T04:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560894#M838002</link>
      <description>Henry ,&lt;BR /&gt;&lt;BR /&gt;You can enable the auditory in the server . However I prefer to create a centralized store for all the histories of every user .&lt;BR /&gt;&lt;BR /&gt;I have introduced in my /etc/profiles&lt;BR /&gt;&lt;BR /&gt;USER1=`id -nu`&lt;BR /&gt;USER2=`who am i | awk '{print $1}'`&lt;BR /&gt;tty=`who am i | awk '{ print $2 }'`&lt;BR /&gt;FROM=`who -a | grep -i $tty | awk '{print $NF }'`&lt;BR /&gt;SCREEN=`who -u -m | awk '{ print $NF }'| sed 's/:/     /g' | awk '{ print $1 }'`&lt;BR /&gt;export DISPLAY=$SCREEN:0.&lt;BR /&gt;&lt;BR /&gt;TTYTEMP=`tty`&lt;BR /&gt;TTY=`basename $TTYTEMP`&lt;BR /&gt;FECHA=`date +%d%b%Y`&lt;BR /&gt;HORA=`date +%H%M%S`&lt;BR /&gt;export HISTFILE=/.history/${USER1}-${USER2}.${TTY}.${FECHA}.${HORA}&lt;BR /&gt;export PS1=`hostname`':$PWD&amp;gt; '&lt;BR /&gt;EDITOR=vi&lt;BR /&gt;export $EDITOR&lt;BR /&gt;&lt;BR /&gt;It creates a history for each user in a "hidden" folder</description>
      <pubDate>Thu, 09 Jun 2005 04:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560894#M838002</guid>
      <dc:creator>jpcast_real</dc:creator>
      <dc:date>2005-06-09T04:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560895#M838003</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For history we export these two lines in /etc/profile for all users or for a indivisual user in his .profile.&lt;BR /&gt;&lt;BR /&gt;export HISTFILE="/path_to_file/$LOGNAME"&lt;BR /&gt;export HISTSIZE=1000&lt;BR /&gt;&lt;BR /&gt;Here /path_to_file directory should be writable by user for which you are exporting history.&lt;BR /&gt;This will create a file with user name in this directory.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Thu, 09 Jun 2005 04:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560895#M838003</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-06-09T04:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560896#M838004</link>
      <description>We can get the history of each user information with /etc/profile setting as,&lt;BR /&gt;&lt;BR /&gt;set -o $EDITOR&lt;BR /&gt;HISTFILE=$HOME/.sh_history_$LOGNAME_$(date +'%d-%m-%y_%X')&lt;BR /&gt;HISTSIZE=1000&lt;BR /&gt;&lt;BR /&gt;so that it will create history information in users home page with .sh_history_(login name_ date_time)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you want to audit the user command execution then you have turn your system into trusted one.&lt;BR /&gt;&lt;BR /&gt;You have to use /usr/lbin/tsconvert utility to do it or using sam also u can do it.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 09 Jun 2005 04:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560896#M838004</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-09T04:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560897#M838005</link>
      <description>Hi Javier,&lt;BR /&gt;&lt;BR /&gt;  Thank you for the info.. actually my problem is that a program (say X) running on my workstation seems to behave strangely, as it is an object files, i can't see their content. But I seriouly will like to know which program running on the background is executing X and when the execution is being carried out? Can this be done?&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Henry</description>
      <pubDate>Thu, 09 Jun 2005 04:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560897#M838005</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-06-09T04:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560898#M838006</link>
      <description>X process will be startup process for the session so that you can it with who -u. IF some is using x windows who -u will give that command. Process ID will be in that execution.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Thu, 09 Jun 2005 06:08:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560898#M838006</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-09T06:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: file access info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560899#M838007</link>
      <description>Henry,&lt;BR /&gt;try to find the pid of the original x session that starts then you can do a grep for the pid that is running the x program.&lt;BR /&gt;ps -ef| grep pid&lt;BR /&gt;&lt;BR /&gt;This will give you quite a few.&lt;BR /&gt;if you want a specific filesystem details,&lt;BR /&gt; you can do a &lt;BR /&gt;fuser -c /var&lt;BR /&gt;and that will give you all the pids accessing any files on say /var&lt;BR /&gt;Try to match the pid of your original x program or it's children to the list you just got from fuser.&lt;BR /&gt;&lt;BR /&gt;Devesh</description>
      <pubDate>Fri, 10 Jun 2005 00:02:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-access-info/m-p/3560899#M838007</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-06-10T00:02:38Z</dc:date>
    </item>
  </channel>
</rss>

