- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh chroot fine, but telnet wide open
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
10-03-2007 06:42 AM
10-03-2007 06:42 AM
I used the hp document and ran /opt/ssh/utils/ssh_chroot_setup.sh.
It works great for ssh.
But normal telnet is WIDE OPEN.
In other words, I locked the door to the barn. But it is missing an entire WALL.
Turning off telnet is one option. But that is not the only answer is it? And if I make nice changes so telnet is chrooted, will it make ssh wide open?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2007 07:58 AM
10-03-2007 07:58 AM
Re: ssh chroot fine, but telnet wide open
You've discovered one feature of the classic Unix login procedure: all different login methods are essentially separate, and making changes to one login method has no effect at all on other methods.
PAM has the capability to remedy this. If you had a PAM session module that could set up a chroot around the user's session, configuring that module would enable the chroot functionality at once for all login methods (that use the PAM session module).
Unfortunately as far as I know, HP has not implemented this. So the current state of affairs with HP-UX is that you must configure each and every login method separately to use chroot and/or disable those that cannot be chrooted.
If you created a chrooting PAM session module and configured all the login methods to use it, it would be the closest thing to the one-stop solution you seem to be seeking.
Note that SSH has a configuration setting that allows you to choose whether SSH uses PAM or not. If you configure PAM to chroot the users and then configure SSH _not_ to use PAM, then SSH sessions won't be chrooted unless you separately configure SSH to chroot the users too.
In practice, when implementing a chroot for security, you should try to make the chroot environment as minimalistic as practical. Usually that means there's only one login method (or maybe two if the bad old FTP absolutely must be one of them).
I don't know what kinds of primary threats you're trying to protect against, but usually getting rid of protocols that transfer passwords in plaintext over the network is a basic security requirement, while implementing a chroot is somewhat more advanced one.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 01:28 AM
10-04-2007 01:28 AM
Re: ssh chroot fine, but telnet wide open
The only thing I'm really doing is keeping developers from wandering around on the box. I can talk to all 6 of them directly.
I know I can reject users in sftp/ssh via the sshd_config file.
I know I can reject ftp users in the ftpd/ftpusers file.
I was kind of hoping for a telnet config file where I can say that user billy can't telnet in.
I wouldn't mind using PAM if I knew more about it.
Short term solution: simple script in user's .profile. Ask the guys not to use telnet.
Long term solution: turn off telnet.
Longer term solution: research PAM. (oh and keep telnet off still).
Thanks for the help.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 02:26 AM
10-04-2007 02:26 AM
SolutionPlease, take a look at this document:
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c00843266-1
Regards;
J. Bravo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2007 02:41 AM
10-04-2007 02:41 AM