<?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: Different PATH via SSH and Telnet in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265169#M749352</link>
    <description>Hi Crystal,&lt;BR /&gt;&lt;BR /&gt;Basically activating the uselogin takes the security control away from sshd, so any security settings like protecting environment variables, is nullified.&lt;BR /&gt;&lt;BR /&gt;If you do a search from Google on ssh and uselogin, you should get a lot of in-depth explanations</description>
    <pubDate>Tue, 04 May 2004 16:30:23 GMT</pubDate>
    <dc:creator>Andrew Cowan</dc:creator>
    <dc:date>2004-05-04T16:30:23Z</dc:date>
    <item>
      <title>Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265161#M749344</link>
      <description>Hi, I recently found that I got different PATHs when I log on via SSH and TELNET. This is what I got by running set command:&lt;BR /&gt;&lt;BR /&gt;Via SSH&lt;BR /&gt;PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/openssh/bin:/&lt;BR /&gt;&lt;BR /&gt;Via Telnet&lt;BR /&gt;PATH=/usr/bin::/opt/openssh/bin:&lt;BR /&gt;&lt;BR /&gt;Doesn't SSH and Telnet use the same file /etc/profile for Korn Shell?&lt;BR /&gt;&lt;BR /&gt;Anyone have idea?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Crystal&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 May 2004 13:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265161#M749344</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2004-05-02T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265162#M749345</link>
      <description>Are you using the HP package for ssh on HP-UX? ssh and telnet logins both go through /etc/profile. I would add some debug echo's into /etc/profile and .profile that include where they are (filename) and the current value of $PATH. Normally, PATH is set with:&lt;BR /&gt; &lt;BR /&gt;export PATH=$(cat /etc/PATH)&lt;BR /&gt; &lt;BR /&gt;ABout the only controls for profiles in ssh is the PrintMotd option which is set to yes, the /etc/motd file will be displayed by ssh in addition to /etc/profile which also displays /etc/motd.</description>
      <pubDate>Sun, 02 May 2004 16:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265162#M749345</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-02T16:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265163#M749346</link>
      <description>It's confirmed that there is no .profile in my home directory. &lt;BR /&gt;&lt;BR /&gt;/etc/profile controls Telnet, but still no clue which file controls SSH....&lt;BR /&gt;&lt;BR /&gt;Crystal</description>
      <pubDate>Sun, 02 May 2004 18:53:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265163#M749346</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2004-05-02T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265164#M749347</link>
      <description>Bill just said:&lt;BR /&gt;&lt;BR /&gt;First /etc/profile is processed&lt;BR /&gt;&lt;BR /&gt;then, if it exists .profile is processed.&lt;BR /&gt;&lt;BR /&gt;Secure Shell(ssh), Telnet, thats what happens.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 02 May 2004 21:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265164#M749347</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-02T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265165#M749348</link>
      <description>If you've compiled the SSH there is &lt;BR /&gt;also a reference to PATH in the .configure :&lt;BR /&gt;&lt;BR /&gt; --with-default-path=    Specify default \$PATH environment for server&lt;BR /&gt;&lt;BR /&gt;So I'd check .configure compile-time options.&lt;BR /&gt;&lt;BR /&gt;rgds &lt;BR /&gt;&lt;BR /&gt;Zeev</description>
      <pubDate>Mon, 03 May 2004 03:27:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265165#M749348</guid>
      <dc:creator>Zeev Schultz</dc:creator>
      <dc:date>2004-05-03T03:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265166#M749349</link>
      <description>The default behaviour of OpenSSH is NOT to use the traditional 'login' process. A crude experiment would be to change the parameter "uselogin" in "/etc/ssh/sshd_config" to yes, and restart the daemon. Now try to connect, and see if your settings have changed. You should not leave SSH like this as it is a security problem, but at least you can nail it down a bit more.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 May 2004 05:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265166#M749349</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-05-03T05:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265167#M749350</link>
      <description>Hi Andrew,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer. It is the UseLogin parameter controlling the login environment. Can you elaborate on this, why changing no to yes causes a security issue? &lt;BR /&gt;&lt;BR /&gt;In addition, you know where is the defult PATH set up in SSH? Can I modify it? &lt;BR /&gt;&lt;BR /&gt;The problem I am currently having is that when I su to another id, I lost the PATH that I had with my login id. Looks like this switched id does not execute /etc/profile or the default SSH PATH, but the .profile if possible. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Crystal&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 May 2004 08:28:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265167#M749350</guid>
      <dc:creator>Crystal_1</dc:creator>
      <dc:date>2004-05-03T08:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265168#M749351</link>
      <description>It would not be a bad idea to add a .profile  that way you can push out all the tweaks you prefer in your environment so you do not have to fight these types of things every time you log into a box.  If you have your ssh keys set up this can be pretty painless :).</description>
      <pubDate>Mon, 03 May 2004 21:36:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265168#M749351</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2004-05-03T21:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265169#M749352</link>
      <description>Hi Crystal,&lt;BR /&gt;&lt;BR /&gt;Basically activating the uselogin takes the security control away from sshd, so any security settings like protecting environment variables, is nullified.&lt;BR /&gt;&lt;BR /&gt;If you do a search from Google on ssh and uselogin, you should get a lot of in-depth explanations</description>
      <pubDate>Tue, 04 May 2004 16:30:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265169#M749352</guid>
      <dc:creator>Andrew Cowan</dc:creator>
      <dc:date>2004-05-04T16:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Different PATH via SSH and Telnet</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265170#M749353</link>
      <description>Once you have logged in, your interface to HP-UX is through the shell so SSH won't have any ongoing effect except as setup prior to login. As far as $PATH not being set correctly by su, this is covered in the man page for su. If you use su user_name, you will get a terribly insecure environment. To have a predictable environment, you must always use su - user_name. That - is critical flag that performs a complete login. It is common for some sysadmins to simply type su to get to root--one of the most common habits that a hacker will exploit. You may want to put a wrapper around su that chastises anyone that does not use su -.</description>
      <pubDate>Tue, 04 May 2004 21:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/different-path-via-ssh-and-telnet/m-p/3265170#M749353</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-04T21:44:20Z</dc:date>
    </item>
  </channel>
</rss>

