I'm not able working on SFTP+chrooted env Using internal-sftp directive it works, but i'm not able to set umask. (ex umask 002) Using sftp-server from openssh package dosent't work because login shell for chrooted only user replay with /bin/false (file not found) This is a sshd server behaviour from: http://www.openssh.org/faq.html#2.9
My sshd config:
Match User sftponly
ChrootDirectory /mnt/www-prod-shared-jail/sftponly/
AllowTCPForwarding no
X11Forwarding no
#ForceCommand internal-sftp -u 002
ForceCommand /usr/lib/openssh/sftp-server
#ForceCommand /bin/sh -c 'umask 002; /usr/lib/openssh/sftp-server'
how do you solved this ? My chrooted environment , in home (chrooted) is /jail/user/bin/false
I try:
- delete .bashrc
- disabled /bin/bash in /etc/passwd setting /bin/false
- try to recreate /bin/bash in choroot but nothing works.
Do you have any ideas ?
Thanks, Ema