<?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: Login test thru script. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776935#M942891</link>
    <description>Brian,&lt;BR /&gt;&lt;BR /&gt;Only the files which are CREATED/MODIFIED within that period should show up. As for .profile, it is read only as login.  Therefore, its timestamp is unchanged, resulting that it is not shown by the find command.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
    <pubDate>Wed, 31 Jul 2002 17:27:06 GMT</pubDate>
    <dc:creator>Hai Nguyen_1</dc:creator>
    <dc:date>2002-07-31T17:27:06Z</dc:date>
    <item>
      <title>Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776934#M942890</link>
      <description>Hi team:&lt;BR /&gt;&lt;BR /&gt; I have the following script thru which i find what are the files which are being accessed/written to before a login program.&lt;BR /&gt;&lt;BR /&gt;touch fileA&lt;BR /&gt;sleep 15&lt;BR /&gt;touch fileB&lt;BR /&gt;find / -newera fileA -a ! -newera fileB&lt;BR /&gt;&lt;BR /&gt;But when i run this script against a login $HOME/.profile is not shown. It is obvious that the user's .profile is accessed uopn a login is it not? or am i missing something. The idea is to have a list of all the files that were either read,referenced,written or executed before login. Can someone help?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Wed, 31 Jul 2002 17:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776934#M942890</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-07-31T17:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776935#M942891</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;Only the files which are CREATED/MODIFIED within that period should show up. As for .profile, it is read only as login.  Therefore, its timestamp is unchanged, resulting that it is not shown by the find command.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Wed, 31 Jul 2002 17:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776935#M942891</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2002-07-31T17:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776936#M942892</link>
      <description>I know what you mean, I think I was able to duplicate your problem.&lt;BR /&gt;I found that if I added &lt;BR /&gt;-name "*" -type f&lt;BR /&gt;to the find command it would work.&lt;BR /&gt;eg:&lt;BR /&gt;find / -name "*" -type f -newera fileA -a ! -newera fileB&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jul 2002 19:13:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776936#M942892</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-31T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776937#M942893</link>
      <description>Hi Rich:&lt;BR /&gt;&lt;BR /&gt;It still does not show .profile. It shows /etc/profile but not .profile.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Thu, 01 Aug 2002 16:44:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776937#M942893</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-08-01T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776938#M942894</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;Is this user's default shell POSIX ? If not, then the profile file will be different. Check .login abd .cshrc files if it's cshell</description>
      <pubDate>Thu, 01 Aug 2002 16:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776938#M942894</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-01T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776939#M942895</link>
      <description>While the user logs in, the $HOME profile will be accessed, but not modified. The newer option will list only the files which were modified after the given file. The option for listing all files which were accessed is -atime.&lt;BR /&gt;&lt;BR /&gt;# man find</description>
      <pubDate>Thu, 01 Aug 2002 17:03:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776939#M942895</guid>
      <dc:creator>Sajid_1</dc:creator>
      <dc:date>2002-08-01T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776940#M942896</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;newera option should show the accessed file.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Brian.</description>
      <pubDate>Thu, 01 Aug 2002 18:57:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776940#M942896</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2002-08-01T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Login test thru script.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776941#M942897</link>
      <description>Here is what I see. It depends on the default shell for the user that logs in.&lt;BR /&gt;&lt;BR /&gt;For user root with default shell /sbin/sh.&lt;BR /&gt;# touch a&lt;BR /&gt;# term   ## which starts a new session&lt;BR /&gt;Starting terminal window on host (TERM=hpterm) ...&lt;BR /&gt;# touch b&lt;BR /&gt;# find . -name "*" -newera a -a ! -newera b&lt;BR /&gt;./.profile&lt;BR /&gt;./b&lt;BR /&gt;&lt;BR /&gt;Now for user with /usr/bin/csh default shell.&lt;BR /&gt;&lt;BR /&gt;# touch a&lt;BR /&gt;# term   ## which starts a new session&lt;BR /&gt;Starting terminal window on host (TERM=hpterm) ...&lt;BR /&gt;# touch b&lt;BR /&gt;# find . -name "*" -newera a -a ! -newera b&lt;BR /&gt;./.cshrc&lt;BR /&gt;./b&lt;BR /&gt;./.kshrc&lt;BR /&gt;./.login&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am running HP-UX 11.0&lt;BR /&gt;&lt;BR /&gt;Rich&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 19:40:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/login-test-thru-script/m-p/2776941#M942897</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-08-01T19:40:30Z</dc:date>
    </item>
  </channel>
</rss>

