<?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: switching between users logged-in in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928811#M111180</link>
    <description>What is happening is that the user1 shell runs the login command just like any other command, as a child process. login expects to run with no shell at all, thus the error message. The exec command tells the shell to replace itself with the login command, thus terminating the current shell and running login. An even faster way to switch users is:&lt;BR /&gt;&lt;BR /&gt;exec login user2&lt;BR /&gt;&lt;BR /&gt;and now, you'll just get a request for the password. su - user2 will accomplish the same goal EXCEPT it starts a subshell and unless user1 remembers to exit twice, there could be a long nested series of login shells.</description>
    <pubDate>Tue, 18 Mar 2003 02:49:59 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-03-18T02:49:59Z</dc:date>
    <item>
      <title>switching between users logged-in</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928809#M111178</link>
      <description>hi everybody.&lt;BR /&gt;i deal with HP workstation with the system HP-UX 11.0 running. there are two user accounts defined - i.e. user1 and user2. both use the same shell and belong to the same group (users). having logged-in as user1 i want to log in as user2 (using the command 'login'). the attempt results with fault, the system displays the following message: 'no utmp entry. you must exec "login" from the lowest level sh'. next the system continues work as user1. where is the problem?&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2003 14:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928809#M111178</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-03-17T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: switching between users logged-in</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928810#M111179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;   Instead of typing login why don't you try :&lt;BR /&gt;&lt;BR /&gt;#exec login&lt;BR /&gt;&lt;BR /&gt;  Tha should ask you for a user ID and a password.  Only when you exit you won't go back to user1 you'll just exit from the box.  If you just want to go to user2 without losing user1's shell, I recommend you go using su &lt;BR /&gt;&lt;BR /&gt;#su - user2&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Mar 2003 14:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928810#M111179</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2003-03-17T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: switching between users logged-in</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928811#M111180</link>
      <description>What is happening is that the user1 shell runs the login command just like any other command, as a child process. login expects to run with no shell at all, thus the error message. The exec command tells the shell to replace itself with the login command, thus terminating the current shell and running login. An even faster way to switch users is:&lt;BR /&gt;&lt;BR /&gt;exec login user2&lt;BR /&gt;&lt;BR /&gt;and now, you'll just get a request for the password. su - user2 will accomplish the same goal EXCEPT it starts a subshell and unless user1 remembers to exit twice, there could be a long nested series of login shells.</description>
      <pubDate>Tue, 18 Mar 2003 02:49:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/switching-between-users-logged-in/m-p/2928811#M111180</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-03-18T02:49:59Z</dc:date>
    </item>
  </channel>
</rss>

