- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SFTP with /usr/bin/false or /sbin/false
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
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
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
тАО06-07-2006 04:35 AM
тАО06-07-2006 04:35 AM
SFTP with /usr/bin/false or /sbin/false
I configure SFTP with chroot jail, in the L2000 with 11.iv1
I want to create an sftp user, i create user with /usr/bin/false as shell user. when i test the connection using sftp , it didn't work. if i change the shell, /bin/sh ie normale shell , it work. Just work with /bin/sh,
but i need to have a user who can do ftp only and the same user can't connected via login.
Too configure the file /etc/shells, this file contain the next :
# more /etc/shells
/usr/bin/sh
/usr/bin/ksh
/usr/bin/csh
/sbin/sh
/usr/bin/false
/sbin/false
In the inetd.conf configure the next line
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a 022
The entry of the user in the passwd is this:
appuser:V/ZjljOq236MU:121:20:Prueba usuario SFTP:/newroot/./home/appuser:/bin/fa
lse
please can i have suggestion.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 04:51 AM
тАО06-07-2006 04:51 AM
Re: SFTP with /usr/bin/false or /sbin/false
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 04:53 AM
тАО06-07-2006 04:53 AM
Re: SFTP with /usr/bin/false or /sbin/false
# more /etc/shells
/usr/bin/sh
/usr/bin/ksh
/usr/bin/csh
/sbin/sh
/usr/bin/false
/sbin/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 04:54 AM
тАО06-07-2006 04:54 AM
Re: SFTP with /usr/bin/false or /sbin/false
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 04:54 AM
тАО06-07-2006 04:54 AM
Re: SFTP with /usr/bin/false or /sbin/false
FTP and SFTP are making use of two different protocols.
SFTP won't make use of /etc/ftpd/ftpaccess file.
Both should work, but we're making use of /usr/bin/false.
What are really using ftp or sftp?
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 04:58 AM
тАО06-07-2006 04:58 AM
Re: SFTP with /usr/bin/false or /sbin/false
Darrel, I use SFTP
Joseph, the line is bad copy
appuser:V/ZjljOq236MU:121:20:Prueba usuario SFTP:/newroot/./home/appuser:/bin/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 05:08 AM
тАО06-07-2006 05:08 AM
Re: SFTP with /usr/bin/false or /sbin/false
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 05:10 AM
тАО06-07-2006 05:10 AM
Re: SFTP with /usr/bin/false or /sbin/false
It works as it should, if you try to ftp to the server, with /usr/bin/false, you can ftp your data.
This is what I get:
$ scp score_tool-hpux.sh hosta:
lost connection
$ ssh hosta
Last login: Wed Jun 7 19:07:07 2006 from hostb
Connection to acen51 closed.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 05:51 AM
тАО06-07-2006 05:51 AM
Re: SFTP with /usr/bin/false or /sbin/false
I add /bin/false in the /etc/shells
# more /etc/shells
/usr/bin/sh
/usr/bin/ksh
/usr/bin/csh
/sbin/sh
/usr/bin/false
/sbin/false
/bin/false
The user in the passwd is :
appuser:V/ZjljOq236MU:121:20:Prueba usuario SFTP:/newroot/./home/appuser:/bin/false
Whe i try connected show this :
# sftp -oPort=9378 appuser@10.199.11.138
Connecting to 10.199.11.138...
Password:
Connection closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2006 07:05 AM
тАО06-07-2006 07:05 AM
Re: SFTP with /usr/bin/false or /sbin/false
Try ftp
Check what the results are.
Sftp is using the same protocol/port as ssh.
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2006 02:12 AM
тАО06-08-2006 02:12 AM
Re: SFTP with /usr/bin/false or /sbin/false
...jcd...