- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Different PATH via SSH and Telnet
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 06:17 AM
05-02-2004 06:17 AM
Via SSH
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/openssh/bin:/
Via Telnet
PATH=/usr/bin::/opt/openssh/bin:
Doesn't SSH and Telnet use the same file /etc/profile for Korn Shell?
Anyone have idea?
Thanks
Crystal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 09:45 AM
05-02-2004 09:45 AM
Re: Different PATH via SSH and Telnet
export PATH=$(cat /etc/PATH)
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 11:53 AM
05-02-2004 11:53 AM
Re: Different PATH via SSH and Telnet
/etc/profile controls Telnet, but still no clue which file controls SSH....
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 02:17 PM
05-02-2004 02:17 PM
Re: Different PATH via SSH and Telnet
First /etc/profile is processed
then, if it exists .profile is processed.
Secure Shell(ssh), Telnet, thats what happens.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 08:27 PM
05-02-2004 08:27 PM
Re: Different PATH via SSH and Telnet
also a reference to PATH in the .configure :
--with-default-path= Specify default \$PATH environment for server
So I'd check .configure compile-time options.
rgds
Zeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2004 10:09 PM
05-02-2004 10:09 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 01:28 AM
05-03-2004 01:28 AM
Re: Different PATH via SSH and Telnet
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?
In addition, you know where is the defult PATH set up in SSH? Can I modify it?
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.
Thanks,
Crystal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 02:36 PM
05-03-2004 02:36 PM
Re: Different PATH via SSH and Telnet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2004 09:30 AM
05-04-2004 09:30 AM
Re: Different PATH via SSH and Telnet
Basically activating the uselogin takes the security control away from sshd, so any security settings like protecting environment variables, is nullified.
If you do a search from Google on ssh and uselogin, you should get a lot of in-depth explanations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2004 02:44 PM
05-04-2004 02:44 PM
Re: Different PATH via SSH and Telnet
Bill Hassell, sysadmin