HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SFTP Limiting Access using chroot
Operating System - HP-UX
1826222
Members
3536
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-20-2008 03:56 PM
02-20-2008 03:56 PM
SFTP Limiting Access using chroot
Folks,
I have a server running HPUX 11i v1 and have installed all required software to get SSH and SFTP working. What I specifically need is for vendors to be able to SFTP price lists to it. I have created a user account and set the home dirctory to where I want the user account to default to. I have tested SFTP with a SFTP client on a windows box and can log in and I get dropped into the correct directory. The problem I have is that when I cd to an upper level directory I am allowed to go there, i.e. I can cd to root, /opt, /etc , /whatever (i can not put or get anything from there, but I am still allowed to go there and browse). I saw a few things on preventing this from happening and most refer to chroot. I read the README.hp file that supposedly explains how to configure chroot to limit a user from accessing upper level directories but it doesn't appear to work correctly. I am sure I am doing sopmething wrong simply because I don't fully understand what chroot is and how it works. Is chroot a script that runs at user logon? If so how do I implement it? Any help would be greatly appreciated.
I have a server running HPUX 11i v1 and have installed all required software to get SSH and SFTP working. What I specifically need is for vendors to be able to SFTP price lists to it. I have created a user account and set the home dirctory to where I want the user account to default to. I have tested SFTP with a SFTP client on a windows box and can log in and I get dropped into the correct directory. The problem I have is that when I cd to an upper level directory I am allowed to go there, i.e. I can cd to root, /opt, /etc , /whatever (i can not put or get anything from there, but I am still allowed to go there and browse). I saw a few things on preventing this from happening and most refer to chroot. I read the README.hp file that supposedly explains how to configure chroot to limit a user from accessing upper level directories but it doesn't appear to work correctly. I am sure I am doing sopmething wrong simply because I don't fully understand what chroot is and how it works. Is chroot a script that runs at user logon? If so how do I implement it? Any help would be greatly appreciated.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2008 08:46 PM
02-20-2008 08:46 PM
Re: SFTP Limiting Access using chroot
Hi Saif
you can read this for vhroot concept
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html
you can read this for vhroot concept
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html
a warrior never quits
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP