<?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: executing scripts upon user logout in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182915#M496151</link>
    <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lokking for non vg00 fs and user shell is /sbin/sh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2013 12:35:30 GMT</pubDate>
    <dc:creator>DeafFrog</dc:creator>
    <dc:date>2013-08-26T12:35:30Z</dc:date>
    <item>
      <title>executing scripts upon user logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182701#M496149</link>
      <description>&lt;P&gt;Hi Gurus ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My requirement is to find the list of modified files , between the time a user login and log out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If login time and log out time is known , we can run find and get the list of modified files , again a user id.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there a way to accomplish this upon user exit , using tools like tripwire seems like and over kill .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved from HP-UX &amp;gt; System Administration to HP-UX &amp;gt; languages.&lt;BR /&gt;-HP Forum Moderator&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 01:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182701#M496149</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2013-08-27T01:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout (trap arg EXIT)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182721#M496150</link>
      <description>&lt;P&gt;What shell is being used?&amp;nbsp; A real shell or the scummy C shell?&lt;/P&gt;&lt;P&gt;Are you just looking at the files under the home directory or all of the filesystems?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 07:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182721#M496150</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-08-27T07:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182915#M496151</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lokking for non vg00 fs and user shell is /sbin/sh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 12:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6182915#M496151</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2013-08-26T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6183513#M496152</link>
      <description>&lt;P&gt;You could insert a suitable 'trap' statement in your /etc/profile that will perform the task you want.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 22:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6183513#M496152</guid>
      <dc:creator>RJHall</dc:creator>
      <dc:date>2013-08-26T22:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6183575#M496153</link>
      <description>&lt;P&gt;How much storage are you going look through? A small server with a few gigabytes will take a trivial amount of time. But HP-UX can easily be connected to petabytes of storage with billions of files, so the find command must be carefully designed to only look where the user has write capability. If the user is not restricted and there are millions of files to search, each exit might require an hour of intense disk activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before designing the script, try find with selected directories and -mtime to find files changed in the last day or two, or for finer resolution, use the -newer option and a reference file. NOTE: if any of these users are sharing the same login, or worse, the user(s) have a root user UID, the find results will be only slightly useful.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 01:04:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6183575#M496153</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2013-08-27T01:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout (trap arg EXIT)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6184217#M496154</link>
      <description>&lt;P&gt;&amp;gt;between the time a user login and log out.&amp;nbsp;&amp;nbsp;&amp;nbsp; If login time and log out time is known&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be simpler to create a reference file when you login.&amp;nbsp; This can be done in your ~/.profile.&lt;/P&gt;&lt;P&gt;Then you can just can just use:&lt;/P&gt;&lt;P&gt;find fs1 fs2 ... -newer ~/.ref-file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may want to see if the user removed the ~/.ref-file.&amp;nbsp; If this can happen, you would have to convert the login time to the touch command syntax to create the ref file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: This is all modified files, no matter which user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;You could insert a suitable 'trap' statement in your /etc/profile that will perform the task you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(This can also be put into each ~/.profile.)&lt;/P&gt;&lt;P&gt;trap "command any-parms" EXIT&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 07:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6184217#M496154</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-08-27T07:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: executing scripts upon user logout (trap arg EXIT)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6187161#M496155</link>
      <description>&lt;P&gt;Thank you Dennis , RJHALL and Bill ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I setteled for a script -a&amp;nbsp; file_name ,in .profile of the user , though upon login they will be aware of the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2013 05:59:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-scripts-upon-user-logout/m-p/6187161#M496155</guid>
      <dc:creator>DeafFrog</dc:creator>
      <dc:date>2013-08-29T05:59:40Z</dc:date>
    </item>
  </channel>
</rss>

