<?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: su shows wrong user in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959602#M118017</link>
    <description>If the system was created by Ignite and the /etc/passwd file wasn't included, this could cause the problem.&lt;BR /&gt;&lt;BR /&gt;If its not an Ingite problem then:&lt;BR /&gt;&lt;BR /&gt;1) A manual change has been made to /etc/passwd&lt;BR /&gt;&lt;BR /&gt;2) The user panama actually did su to root and knows the password.&lt;BR /&gt;&lt;BR /&gt;I am gessing there is an error in /etc/passwd that doesn't show up on pwck -s&lt;BR /&gt;&lt;BR /&gt;log on.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;whoami&lt;BR /&gt;who am i&lt;BR /&gt;&lt;BR /&gt;Do the su thing.&lt;BR /&gt;&lt;BR /&gt;whoami&lt;BR /&gt;who am i&lt;BR /&gt;&lt;BR /&gt;See if that sheds any light on the situation.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 25 Apr 2003 15:34:45 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-04-25T15:34:45Z</dc:date>
    <item>
      <title>su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959600#M118015</link>
      <description>Running HP-UX 11.00 in trusted mode.&lt;BR /&gt;su from root to another user, but sulog shows another user. e.g.&lt;BR /&gt;SU 04/25 11:09 + 0 panama-maestro&lt;BR /&gt;Also mail from root is recorded as from "panama".&lt;BR /&gt;pwck -s does not display any errors, and there are no duplicate UID's.&lt;BR /&gt;I assume problem is with authentication database, but have no idea how to fix it!&lt;BR /&gt;Any help would be greatly appreciated.</description>
      <pubDate>Fri, 25 Apr 2003 15:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959600#M118015</guid>
      <dc:creator>Ben Thomas</dc:creator>
      <dc:date>2003-04-25T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959601#M118016</link>
      <description>Hi Ben here is what happening.&lt;BR /&gt;&lt;BR /&gt;I am login as user sachin then run su - to become root then run su - patel and look what happen.&lt;BR /&gt;&lt;BR /&gt;# whoami&lt;BR /&gt;root&lt;BR /&gt;# who am i&lt;BR /&gt;sachin     pts/3        Apr 25 11:05&lt;BR /&gt;&lt;BR /&gt;#su - patel&lt;BR /&gt;patel%exit&lt;BR /&gt;#tail -2 /var/adm/sulog&lt;BR /&gt;SU 04/25 11:25 + 3 sachin-root&lt;BR /&gt;SU 04/25 11:27 + 3 sachin-patel&lt;BR /&gt;&lt;BR /&gt;But if you login to system via telnet as user root look what happens&lt;BR /&gt;&lt;BR /&gt;#telnet rem1&lt;BR /&gt;Trying...&lt;BR /&gt;Connected to rem1.test.com.&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;Local flow control on&lt;BR /&gt;Telnet TERMINAL-SPEED option ON&lt;BR /&gt;&lt;BR /&gt;HP-UX sagan B.11.00 U 9000/800 (t0)&lt;BR /&gt;&lt;BR /&gt;login: root&lt;BR /&gt;Password: &lt;BR /&gt;&lt;BR /&gt;#su - patel&lt;BR /&gt;patel%exit&lt;BR /&gt;#tail -1 /var/adm/sulog&lt;BR /&gt;SU 04/25 11:29 + t0 root-patel&lt;BR /&gt;&lt;BR /&gt;Conclusion: if you run su - then it source your profile so you have entry like &lt;BR /&gt;SU 04/25 11:09 + 0 panama-maestro &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Fri, 25 Apr 2003 15:32:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959601#M118016</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2003-04-25T15:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959602#M118017</link>
      <description>If the system was created by Ignite and the /etc/passwd file wasn't included, this could cause the problem.&lt;BR /&gt;&lt;BR /&gt;If its not an Ingite problem then:&lt;BR /&gt;&lt;BR /&gt;1) A manual change has been made to /etc/passwd&lt;BR /&gt;&lt;BR /&gt;2) The user panama actually did su to root and knows the password.&lt;BR /&gt;&lt;BR /&gt;I am gessing there is an error in /etc/passwd that doesn't show up on pwck -s&lt;BR /&gt;&lt;BR /&gt;log on.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;whoami&lt;BR /&gt;who am i&lt;BR /&gt;&lt;BR /&gt;Do the su thing.&lt;BR /&gt;&lt;BR /&gt;whoami&lt;BR /&gt;who am i&lt;BR /&gt;&lt;BR /&gt;See if that sheds any light on the situation.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 25 Apr 2003 15:34:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959602#M118017</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-04-25T15:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959603#M118018</link>
      <description>Thanks for the comments, but does not help.&lt;BR /&gt;When logging in as root, we do not 'su' to root but are logged in using SSH. While logged in, running a tail on the sulog you can see the message "su : + 0 panama-maestro".&lt;BR /&gt;Also, all mail messages generated by root appear to come from 'panama' -- which does NOT have UID=0.&lt;BR /&gt;We have 25 HP systems, and this is the only one that does this.... It does not interfere with production, as it only seems to occur to the 'root' account -- but it is really weird.</description>
      <pubDate>Fri, 25 Apr 2003 18:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959603#M118018</guid>
      <dc:creator>Ben Thomas</dc:creator>
      <dc:date>2003-04-25T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959604#M118019</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Run the id command in both accounts and compare the output.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DR</description>
      <pubDate>Fri, 25 Apr 2003 18:44:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959604#M118019</guid>
      <dc:creator>Dario_1</dc:creator>
      <dc:date>2003-04-25T18:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959605#M118020</link>
      <description>Hi Ben,&lt;BR /&gt;&lt;BR /&gt;I had a similar problem back in December. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x92640fe6d0f7d61190050090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x92640fe6d0f7d61190050090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I never did solve it, and it has not come back to play either. I have a feeling it ended up being some corruption in the /etc/utmp or /var/adm/wtmp file. Once that system rebooted and new Xtmp files were created the lady with the tarot cards never dealt me another hand.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 25 Apr 2003 22:12:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959605#M118020</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-04-25T22:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959606#M118021</link>
      <description>I'm suspicious that the problem is related to stale entries in /etc/utmp or /etc/utmpx.&lt;BR /&gt;If the machine can be easily rebooted I would be tempted to try renaming /etc/utmp and /etc/utmpx, 'touch'ing them back and resetting the original owner/group/mode then rebooting.  &lt;BR /&gt;</description>
      <pubDate>Mon, 28 Apr 2003 23:40:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959606#M118021</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2003-04-28T23:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: su shows wrong user</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959607#M118022</link>
      <description>I am having a similar problem with HP-UX 11.00&lt;BR /&gt;When I login using tty tyb and su to root it shows the su as a different user.  It only happens on tyb and it is always the same user.</description>
      <pubDate>Thu, 13 Nov 2003 11:10:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-shows-wrong-user/m-p/2959607#M118022</guid>
      <dc:creator>Stuart Campbell</dc:creator>
      <dc:date>2003-11-13T11:10:46Z</dc:date>
    </item>
  </channel>
</rss>

