<?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: Last Command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735400#M66397</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt; We are using 11.0 and the march 2002 patch bundle has been installed.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe</description>
    <pubDate>Fri, 31 May 2002 14:30:58 GMT</pubDate>
    <dc:creator>joe_91</dc:creator>
    <dc:date>2002-05-31T14:30:58Z</dc:date>
    <item>
      <title>Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735387#M66384</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;   I have a problem with the "last" command. The command reports for some users and for some other users it just says "wtmp begins Mon Nov 5 20:07". Some of these users are connecting via PC thru xemulator. will that be an issue.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 13:24:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735387#M66384</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T13:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735388#M66385</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;'last' is announcing the date at which the file 'var/adm/wtmp' was last initialized (created, or emptied).&lt;BR /&gt;&lt;BR /&gt;If you do 'last auser' and there is no match found for "auser", then 'last' behaves as you noted.  Either "auser" isn't valid (no check is made), or "auser" *is* a valid account but one that just hasn't logged on since the initialization of the file.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 May 2002 13:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735388#M66385</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735389#M66386</link>
      <description>Hi Joe&lt;BR /&gt;&lt;BR /&gt;I dont think is differntiates between these users , it will log in any user logging into the system whether from PC etc , may be you will like to read this in case you find that ther is some problem.&lt;BR /&gt;&lt;BR /&gt;You can use the fwtmp command to manipulate the wtmp file. &lt;BR /&gt;For example, initially convert the wtmp file to an ASCII file: &lt;BR /&gt;cat /var/adm/wtmp | /usr/sbin/acct/fwtmp &amp;gt; /tmp/wtmp.ascii &lt;BR /&gt;Edit the /tmp/wtmp.ascii entry using your favourite editor. &lt;BR /&gt;Convert the ASCII file back to binary:&lt;BR /&gt;cat /tmp/wtmp.ascii | /usr/sbin/acct/fwtmp &amp;gt; /var/adm/wtmp"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 13:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735389#M66386</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-05-31T13:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735390#M66387</link>
      <description>check the permissions on /var/adm/btmp, it should be owned be root and other and read and writeable only by the owner (600).&lt;BR /&gt;&lt;BR /&gt;We are currently setting-up an L2000, and as part of the conversion process have created a limited /etc/passwd file to keep people out of the system while we copy files over the network.  The new /etc/passwd file was created only with 660 permissions, and consequently "whoami" when run as other than root now returns the message "Intruder alert.", so check your permissions on /etc/passwd as well.&lt;BR /&gt;&lt;BR /&gt;Also, keep in mind that users running applications that only create socket connections will not show in the "last" display, as they really don't log in.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 13:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735390#M66387</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2002-05-31T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735391#M66388</link>
      <description>Hi James:&lt;BR /&gt;&lt;BR /&gt;  what i find here is i am able to use last command for all users who have come thru a shell. for users who come from the pc(not thru telnet but xemulator) the last command reports as though that user was never there. the login process is taken care by the xemulator and there is no shell for the users(coming from pc) as they are directly put inside the xmotif application. Any thoughts??&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Fri, 31 May 2002 13:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735391#M66388</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735392#M66389</link>
      <description>Also note, that some emulator products are not designed to write an entry to wtmp.  This is something that is done at a code level and controlled by the emulator, not controlled by last.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;Cheryl</description>
      <pubDate>Fri, 31 May 2002 13:41:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735392#M66389</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2002-05-31T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735393#M66390</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;What emulator?  We use WRQ Reflections and last works fine for me.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 31 May 2002 13:46:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735393#M66390</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-31T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735394#M66391</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;if you use&lt;BR /&gt;&lt;BR /&gt;users&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;w&lt;BR /&gt;&lt;BR /&gt;Do you see these users&lt;BR /&gt;&lt;BR /&gt;last -R|grep still can also be interesting.&lt;BR /&gt;&lt;BR /&gt;Maybe someone cleaned out the users withh accounting.&lt;BR /&gt;&lt;BR /&gt;Ask one to log out and back in.Then check for user.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                    steve Steel</description>
      <pubDate>Fri, 31 May 2002 13:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735394#M66391</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-05-31T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735395#M66392</link>
      <description>Joe,&lt;BR /&gt;&lt;BR /&gt;I think JRF hit the nail on the head.  Either the user is non-existant or has not logged in.&lt;BR /&gt;&lt;BR /&gt;For what it's worth,&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 31 May 2002 13:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735395#M66392</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-05-31T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735396#M66393</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  if i do last username it shows&lt;BR /&gt;  wtmp begins Mon Nov 5 20:07&lt;BR /&gt;&lt;BR /&gt; and if i do w|grep username&lt;BR /&gt;&lt;BR /&gt;then i get&lt;BR /&gt;username pcremote  12:00pm&lt;BR /&gt;&lt;BR /&gt;i think my xemulator(citrix) does not log onto wtmp but since the w works fine may be updates the utmp. Is my assumption correct?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe</description>
      <pubDate>Fri, 31 May 2002 13:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735396#M66393</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T13:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735397#M66394</link>
      <description>Some thoughts:&lt;BR /&gt;&lt;BR /&gt;1) The 'w' command is actually using the command 'uptime' for getting it's results.&lt;BR /&gt;&lt;BR /&gt;2) Check whether 'who' command report the correct data, while this takes output from wtmp file.&lt;BR /&gt;&lt;BR /&gt;3) I believe that your xemulator software is not putting the entries in wtmp.&lt;BR /&gt;&lt;BR /&gt;4) Make use of fwtmp command too.</description>
      <pubDate>Fri, 31 May 2002 14:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735397#M66394</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-31T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735398#M66395</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  If i do a who|grep username i am able to find 2 entries fro that particular user.&lt;BR /&gt;&lt;BR /&gt;  who|grep chris&lt;BR /&gt;&lt;BR /&gt;chris    pcremote   May 28 12:00&lt;BR /&gt;chris    pcremote   May 29 10:17&lt;BR /&gt;&lt;BR /&gt;and if i do ps -ef |grep chris gives me 21 processes for both May 28 and 29. &lt;BR /&gt;but if i do a w|grep chris&lt;BR /&gt;chris  pcremote  12:00pm  2      -&lt;BR /&gt;chris  pcremote  10:17am  2      -&lt;BR /&gt;&lt;BR /&gt;can anyone tell what is going on?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Fri, 31 May 2002 14:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735398#M66395</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T14:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735399#M66396</link>
      <description>Just another thought:&lt;BR /&gt;&lt;BR /&gt;Update your patch level with the latest patches. That may solve your issues. If you are using version 10.20, then install this patch:&lt;BR /&gt;&lt;BR /&gt;PHCO_8915 - s700_800 10.01-[12]0 last(1) cumulative patch&lt;BR /&gt;</description>
      <pubDate>Fri, 31 May 2002 14:29:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735399#M66396</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-05-31T14:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735400#M66397</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt; We are using 11.0 and the march 2002 patch bundle has been installed.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe</description>
      <pubDate>Fri, 31 May 2002 14:30:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735400#M66397</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735401#M66398</link>
      <description>Joe&lt;BR /&gt;&lt;BR /&gt;Jame's answer is 100 % correct in that the file start time is based upon your last reboot (Starts at) and the wtmp begins is telling you that the user has not logged in since the start of the wtmp.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Fri, 31 May 2002 14:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735401#M66398</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-05-31T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735402#M66399</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  This user has logged in on 28th and 29th and he still has that processes left hanging in there.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Fri, 31 May 2002 14:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735402#M66399</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735403#M66400</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;The answer to your original question is yes, there is an issue with last and X session users.&lt;BR /&gt;&lt;BR /&gt;X sessions don't get logged in wtmp in the same way as normal character logins (see comment from Cheryl above).&lt;BR /&gt;&lt;BR /&gt;Have a look at the man pages for last, login and wtmp.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 31 May 2002 15:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735403#M66400</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2002-05-31T15:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735404#M66401</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;Here's some more information that may help you.  Cheryl's comments are the seed.&lt;BR /&gt;&lt;BR /&gt;If you make connection with another server using 'remsh', no update of /var/adm/wtmp occurs.  This is because 'remsh' isn't considered a "login".&lt;BR /&gt;&lt;BR /&gt;However, it turns out that if no command is specified with 'remsh', then 'remsh' treats this as an 'rlogin' and an entry *is* made in /var/adm/wtmp.  TO see this behavior, compare:&lt;BR /&gt;&lt;BR /&gt;# remsh somehost -n hostname&lt;BR /&gt;&lt;BR /&gt;...versue:&lt;BR /&gt;&lt;BR /&gt;# remsh somehost #...this becomes a 'rlogin'&lt;BR /&gt;&lt;BR /&gt;In the first case, no entry is recorded in /var/adm/wtmp (for 'last').  In the second, there is a record.&lt;BR /&gt;&lt;BR /&gt;BTW, use 'last -R &lt;USER&gt;' to return the hostname information for tracking in these situations.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;/USER&gt;</description>
      <pubDate>Fri, 31 May 2002 18:06:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735404#M66401</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T18:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735405#M66402</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  Thanks. But as i said earlier last -R is not working and behaving as though the user never existed. So i guess i have to go the xemulator's code. Now is there some serious problem if wtmp is not updated in a login?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Fri, 31 May 2002 19:15:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735405#M66402</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-05-31T19:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Last Command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735406#M66403</link>
      <description>Hi Joe:&lt;BR /&gt;&lt;BR /&gt;In answer to your last question, the accounting of login information in '/var/adm/wtmp' (and bad logins in '/var/adm/btmp') is purely discretionary.  If you don't care about capturing the information, remove the file(s).  This turns off logging in the first place.  To re-enable it, create an empty file with 'touch' or 'cat /dev/nul &amp;gt; ...'.&lt;BR /&gt;&lt;BR /&gt;My suggestion to use the '-R' option of 'last' was to be more demonstrative if you perform the 'remsh' exercise I suggested.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 31 May 2002 19:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/last-command/m-p/2735406#M66403</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-05-31T19:44:06Z</dc:date>
    </item>
  </channel>
</rss>

