- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: pb with SFTP and restricted shell
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
05-14-2006 09:42 PM
05-14-2006 09:42 PM
pb with SFTP and restricted shell
I want to create an ftp 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.
but i need to have a user who can do ftp only.
please can i have suggestion.
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2006 09:44 PM
05-14-2006 09:44 PM
Re: pb with SFTP and restricted shell
tail -f /var/adm/syslog/syslog.log
Try the ftp transaction with /usr/bin/false as shell.
You will see an error.
Correct or post it and someone will help.
SEP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2006 10:46 PM
05-14-2006 10:46 PM
Re: pb with SFTP and restricted shell
If yes can you put the entry for /usr/bin/false as well and check again.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 12:48 AM
05-15-2006 12:48 AM
Re: pb with SFTP and restricted shell
Use /usr/bin/false in password file
and /etc/shells (create this file)
and ensure your ftp deamon has
the correct option in inetd.conf
especially the -a enables the ftpaccess
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a -t 250
Then you should have the correct settings
there in /etc/ftpd/ftpaccess
Let me know indeed what error , is will give
us a clue to where to shoot.
Keep cooking:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 01:14 AM
05-15-2006 01:14 AM
Re: pb with SFTP and restricted shell
thanks for your help, but i didn't expose the problem vey well.
I want to use sftp of ssh for user. but i didn't want to give this user normale shell, i want to give him restricted shell, for this reason, i give this user /usr/bin/false as user shell in /etc/passwd and i have /usr/bin/false in
/etc/shells.
it sftp of ssh didn't work with /usr/bin/false as shell user.
thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 01:15 AM
05-15-2006 01:15 AM
Re: pb with SFTP and restricted shell
thanks for your help, but i didn't expose the problem vey well.
I want to use sftp of ssh for user. but i didn't want to give this user normale shell, i want to give him restricted shell, for this reason, i give this user /usr/bin/false as user shell in /etc/passwd and i have /usr/bin/false in
/etc/shells.
is sftp of ssh didn't work with /usr/bin/false as shell user.
thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 01:33 AM
05-15-2006 01:33 AM
Re: pb with SFTP and restricted shell
i use putty as windows client, when try to connect to unix server , i had the following error : Cannot initialize SFTP protocol. Is the host running a SFTP server?
Connection has been unexpectedly closed. Server sent command exit status 1.
in the syslog i have just:
May 15 21:27:31 edcte10b sshd[7404]: Accepted keyboard-interactive/pam for userftp from 10.21.3.156 port 3744 ssh2
May 15 21:27:31 edcte10b sshd[7411]: subsystem request for sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 06:54 AM
05-15-2006 06:54 AM
Re: pb with SFTP and restricted shell
Check the following url:
http://vsftpd.beasts.org/
With vsftp you still have a secure ftp.
GoodLuck
Darrel