- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- create an ftponly account with 'chroot' characteri...
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-11-2005 11:00 PM
10-11-2005 11:00 PM
create an ftponly account with 'chroot' characteristics and 'sftp' protocol, and an NFS mounted Home
1) The account should only be usable through ftp, so no telnet. => ftponly
2) The data transfer must be encrypted so we need to use the sftp protocol (ssh)
3) When the user connects with sftp he should go to his Home-directory, and be RESTRICTED to this home directory (he should be able to change directory, but only 'upwards' (no cd .. for example, and he should be able to create sub-directories in his home directory.)
I know chroot can be used for this.
NOTE: Apparently the HOME-dir of the user is NFS-mounted, and I have been told that is causing troubles in achieving the above described desired results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 11:14 PM
10-11-2005 11:14 PM
Re: create an ftponly account with 'chroot' characteristics and 'sftp' protocol, and an NFS mounted Home
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2005 11:19 PM
10-11-2005 11:19 PM
Re: create an ftponly account with 'chroot' characteristics and 'sftp' protocol, and an NFS mounted Home
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=827155
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=876162
Similar threads can give you more information and better idea..
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2005 10:41 PM
11-07-2005 10:41 PM
Re: create an ftponly account with 'chroot' characteristics and 'sftp' protocol, and an NFS mounted Home
The sftp configuration you describe in 3)
is easy enough to implement using the
Secure Shell (non-commercial licence) product from SSH Communications Security Corps. You would need to replace the normal
login shell /etc/passwd file entries with a program called ssh-dummyshell.
N.b. unlike the Openssh product bundled with HP-UX, it is possible to log file transfers.
NFS mounted home would only be a
problem if the NFS server accessed by the
sftp server was unreliable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2005 11:12 AM
12-06-2005 11:12 AM
Re: create an ftponly account with 'chroot' characteristics and 'sftp' protocol, and an NFS mounted Home
useradd -u (uid) -g (group) -s /usr/bin/false -d /home/dir/from/./nfsmount -c "comment" login
next you will need to setup your fptusers/ftpaccess files...the links mentioned in previous posts should explain those files.
I just want to emphasize the importance of the UID....otherwise you will run into permission problems.
Good luck!