- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Secure Shell update broke chroot environment
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
09-16-2008 12:05 PM
09-16-2008 12:05 PM
Secure Shell update broke chroot environment
This is on 11.11i v1.
After udating Secure Shell from A.04.70.009 to A.05.00.024 chroot ssh, sftp and scp environments stopped working. The account can login, but it doesn't get "jailed" to its home directory.
I successfully created a brand new test environmemt/account with the /opt/ssh/utils/ssh_chroot_setup.sh script, but end up with the same behavior.
Just so you know, enabling he "ChrootDirectory" clause on /opt/ssh/etc/sshd_config didn't help because it made all accounts to chroot to that directory.
Has anybody had this problem before?
Thanks a lot,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2008 12:50 PM
09-16-2008 12:50 PM
Re: Secure Shell update broke chroot environment
See known problems and workarounds for this version:
"The chroot functionality does not work if the UseLogin configuration directive in sshd_config is set to YES"
More here - http://docs.hp.com/en/T1471-90033/ch01s06.html
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2008 01:38 PM
09-16-2008 01:38 PM
Re: Secure Shell update broke chroot environment
The UseLogin clause is actually set to its default: "no".
I tried actually making it explicit and restarting sshd, but it didn't work either.
But that's how it looks like: as if the "UseLogin" clause was set to "yes"...
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:51 PM
09-18-2008 01:51 PM
Re: Secure Shell update broke chroot environment
Just in case somebody experience the same issue, here the solution I got from HP. Note that this is for a chroot environment after that was there before the Secure Shell update.
1 - On the actual /etc/passwd file, change the chrooted account's home directory from "/
2 - Do the same for "/
3 - On the end of the /opt/ssh/etc/sshconfig file add two lines like:
Match User
ChrootDirectory /
4 - Restart sshd.
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2008 01:52 PM
09-18-2008 01:52 PM