HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ftp and sftp
Operating System - HP-UX
1833982
Members
2083
Online
110063
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
09-17-2006 11:56 PM
09-17-2006 11:56 PM
ftp and sftp
Hi ppl,
I'm converting some of my accounts to work with sftp instead of ftp.
these users had /bin/false as shell in order to avoid interactive shell, and their home directory is set with /./ in order to prevent from them to navigate on host directories hierarchy.
when attempting to connect the server with sftp, connection won't be established, unless I'm cancelling these restrictions. I don't want these users to have shell access or to be able to explore the host hierarchy.
any ideas?
I'm converting some of my accounts to work with sftp instead of ftp.
these users had /bin/false as shell in order to avoid interactive shell, and their home directory is set with /./ in order to prevent from them to navigate on host directories hierarchy.
when attempting to connect the server with sftp, connection won't be established, unless I'm cancelling these restrictions. I don't want these users to have shell access or to be able to explore the host hierarchy.
any ideas?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 02:47 PM
09-18-2006 02:47 PM
Re: ftp and sftp
Hi there.
I was reading the other day some of the highlights of the new ssh version released by HP; A.4.3.xxx
In here I think that they mentioned that they have updated their script, the one I believe that creates ssh capable chrooted accounts, to handle ftp(sftp) only accounts as well.
It will certainly worth you checking it out.
regards,
haralambos
I was reading the other day some of the highlights of the new ssh version released by HP; A.4.3.xxx
In here I think that they mentioned that they have updated their script, the one I believe that creates ssh capable chrooted accounts, to handle ftp(sftp) only accounts as well.
It will certainly worth you checking it out.
regards,
haralambos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2006 02:58 PM
09-18-2006 02:58 PM
Re: ftp and sftp
ftp will always fail when the shell is not standard. To prevent this failure, put /usr/bin/false in the file /etc/shells (which is what ftp checks to see if there is a valid shell). If /etc/shells does not exist, this is the default list you must put in the file, then add /usr/bin/false.
Here is the default list (from man getusershell)
/sbin/sh
/usr/bini/sh /usr/bin/rsh /usr/bin/ksh /usr/bin/rksh /usr/bin/csh /usr/bin/keysh
Note: On HP-UX (and other SysV versions like Solaris), there is no /bin directory. Type this command:
ll /bin
The symlink is called a transition link and will disappear someday.
Bill Hassell, sysadmin
Here is the default list (from man getusershell)
/sbin/sh
/usr/bini/sh /usr/bin/rsh /usr/bin/ksh /usr/bin/rksh /usr/bin/csh /usr/bin/keysh
Note: On HP-UX (and other SysV versions like Solaris), there is no /bin directory. Type this command:
ll /bin
The symlink is called a transition link and will disappear someday.
Bill Hassell, sysadmin
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP