<?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: lastb command to wrk....for ordinary users... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269206#M734320</link>
    <description>I am totally agree with Evan. Use s"sudo" for thi spurpose. I dont recomment u to change permission of files.</description>
    <pubDate>Tue, 16 Sep 2008 03:36:34 GMT</pubDate>
    <dc:creator>Sandeep_Chaudhary</dc:creator>
    <dc:date>2008-09-16T03:36:34Z</dc:date>
    <item>
      <title>lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269189#M734303</link>
      <description>hi,&lt;BR /&gt; i would like lastb command to wrk for ordinary users....&lt;BR /&gt;&lt;BR /&gt;how do i make it available to all ordinary users...just for a exercise...&lt;BR /&gt;i know its a big security threat but still would like to do it...for my development server.....&lt;BR /&gt;&lt;BR /&gt;hpux 11i v2...&lt;BR /&gt;root #/var/adm &amp;gt;ls -lrt *tmp*&lt;BR /&gt;-rwxr-xr-x   1 root       sys            280 Jul 24 18:45 wtmpx&lt;BR /&gt;-rwxr-xr-x   1 root       other       741780 Sep 15 13:10 btmp&lt;BR /&gt;-rwxr-xr-x   1 root       other      11230048 Sep 15 13:10 btmps&lt;BR /&gt;-rwxr-xr-x   1 adm        adm        5256840 Sep 15 13:26 wtmp&lt;BR /&gt;-rw-rw-r--   1 adm        adm        138667360 Sep 15 13:26 wtmps&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rx46460...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tejas</description>
      <pubDate>Mon, 15 Sep 2008 06:59:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269189#M734303</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T06:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269190#M734304</link>
      <description>Just install and configure sudo. After that enable lastb via sudo.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Mon, 15 Sep 2008 07:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269190#M734304</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-09-15T07:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269191#M734305</link>
      <description>Why do you want to enable lastb(1)?  If it is a development server don't you all have root? :-)&lt;BR /&gt;&lt;BR /&gt;This isn't just some "just for a exercise".</description>
      <pubDate>Mon, 15 Sep 2008 07:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269191#M734305</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-15T07:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269192#M734306</link>
      <description>hi Dennis,&lt;BR /&gt;WE do have sudo installed....&lt;BR /&gt;but i wuld like to enable it for all users..without sudo ..&lt;BR /&gt;is it possible or not ????</description>
      <pubDate>Mon, 15 Sep 2008 08:04:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269192#M734306</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T08:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269193#M734307</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;if you change /var/adm/btmp file's permission it's possible. but as this file contain password information it is a security hole.</description>
      <pubDate>Mon, 15 Sep 2008 08:21:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269193#M734307</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-09-15T08:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269194#M734308</link>
      <description>Hi Kenan,&lt;BR /&gt;so what permissions i should be giving to it...&lt;BR /&gt;&lt;BR /&gt;I know its a hole....but since its a  development server...its fine....&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;chindi</description>
      <pubDate>Mon, 15 Sep 2008 08:25:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269194#M734308</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T08:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269195#M734309</link>
      <description>put users into a group i.e group_name  then &lt;BR /&gt;&lt;BR /&gt;chown root:group_name /var/adm/btmp&lt;BR /&gt;chmod 660 /var/adm/btmp</description>
      <pubDate>Mon, 15 Sep 2008 08:37:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269195#M734309</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-09-15T08:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269196#M734310</link>
      <description>Hi Kenan,&lt;BR /&gt;&lt;BR /&gt;g1 /var/adm &amp;gt; ll *tmp*&lt;BR /&gt;-rw-rw----   1 root       sgr       741780 Sep 15 13:10 btmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;g1 /home/g1 &amp;gt; lastb -R|grep sud&lt;BR /&gt;g1 /home/g1 &amp;gt; id&lt;BR /&gt;uid=223(g1) gid=108(sgr)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root #/var/adm &amp;gt;lastb -R|grep sud|head -2&lt;BR /&gt; sud      ssh:notty    10.1.4.190       Fri Sep 12 13:35&lt;BR /&gt; sud      ftp          10.1.4.163       Thu Sep 11 16:26&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 08:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269196#M734310</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T08:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269197#M734311</link>
      <description>You could also change the permissions on the btmps file so everyone can read it.  It appears this was the case in your initial listing.&lt;BR /&gt;&lt;BR /&gt;You should immediately remove execute permission from your ?tmp* files.</description>
      <pubDate>Mon, 15 Sep 2008 09:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269197#M734311</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-15T09:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269198#M734312</link>
      <description>try log out and log in again. tried and worked for me.</description>
      <pubDate>Mon, 15 Sep 2008 09:24:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269198#M734312</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-09-15T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269199#M734313</link>
      <description>Hi Keenan,Dennis,&lt;BR /&gt;&lt;BR /&gt;when i run lastb from that user i am getting &lt;BR /&gt;&lt;BR /&gt;g1 /home/g1 &amp;gt; lastb&lt;BR /&gt;lastb can be invoked only by root. Exiting ....&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:29:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269199#M734313</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269200#M734314</link>
      <description>&amp;gt;lastb can be invoked only by root.&lt;BR /&gt;&lt;BR /&gt;Then you'll have to make a copy of lastb and turn it into a setuid root executable.</description>
      <pubDate>Mon, 15 Sep 2008 09:39:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269200#M734314</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-15T09:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269201#M734315</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;root #/usr/bin &amp;gt;ll /usr/bin/lastb&lt;BR /&gt;-rwsr-xr-x   2 bin        bin          46772 Dec 22  2004 /usr/bin/lastb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;even after this its not executing....</description>
      <pubDate>Mon, 15 Sep 2008 09:49:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269201#M734315</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269202#M734316</link>
      <description>I believe the lastb command (actually it is the last command with a link to lastb) checks internally for the root user. And for good reason. To allow ordinary users to view failed login attempts is a terrible security risk. It is very common for users to type their password when the prompt is for user. This mistake is recorded in the btmp file. So by using the timestamp of the failed login, the next successful login is probably the real user -- and now the user and the password are known to everyone.&lt;BR /&gt; &lt;BR /&gt;So it is a very bad idea to circumvent these restrictions. You can give users a special alias called something like retrylist that is hardcoded to their personal login. That way, only bad logins using their correct username will be shown, something like this:&lt;BR /&gt; &lt;BR /&gt;alias retrylist="sudo lastb -R $(id -un)"&lt;BR /&gt; &lt;BR /&gt;You don't want users browsing all the failed logins...</description>
      <pubDate>Mon, 15 Sep 2008 09:51:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269202#M734316</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-09-15T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269203#M734317</link>
      <description>&amp;gt;even after this its not executing&lt;BR /&gt;&lt;BR /&gt;Of course not.  To make a setuid root executable you have to use chmod and chown.  There may be a specific ordering.</description>
      <pubDate>Mon, 15 Sep 2008 09:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269203#M734317</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-15T09:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269204#M734318</link>
      <description>Hi guys,&lt;BR /&gt;Its ok i have decided to leave it,since its a bit tedious one...and also a big security hole as pointed by all of u guys ( Bill,Dennis,Kenan).....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chindi....</description>
      <pubDate>Mon, 15 Sep 2008 10:14:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269204#M734318</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2008-09-15T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269205#M734319</link>
      <description>&amp;gt;ME: To make a setuid root executable&lt;BR /&gt;&lt;BR /&gt;While you can do this, it won't work:&lt;BR /&gt;$ ll  lastb&lt;BR /&gt;-r-sr-xr-x  1 root  sys 46764 Sep 15 15:12 lastb*&lt;BR /&gt;$ ./lastb&lt;BR /&gt;lastb can be invoked only by root. Exiting ....</description>
      <pubDate>Mon, 15 Sep 2008 21:18:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269205#M734319</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-09-15T21:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: lastb command to wrk....for ordinary users...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269206#M734320</link>
      <description>I am totally agree with Evan. Use s"sudo" for thi spurpose. I dont recomment u to change permission of files.</description>
      <pubDate>Tue, 16 Sep 2008 03:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lastb-command-to-wrk-for-ordinary-users/m-p/4269206#M734320</guid>
      <dc:creator>Sandeep_Chaudhary</dc:creator>
      <dc:date>2008-09-16T03:36:34Z</dc:date>
    </item>
  </channel>
</rss>

