|
From: Frank L. <gfr...@gm...> - 2012-11-12 06:11:52
|
Hi,
I am testing symbolic link with proftpd/mod_sftp on Solaris 10 x86.
It is chrooted in user home (~) directory.
/home/testuser/dir2
/home/testuser/dir/dir3 --> symbolic link to ../dir2
I am using sftp client that comes with Sun Solaris 10 ssh:
ssh -V
Sun_SSH_1.1.3, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
When I sftp into "testuser", and go to /dir/dir3, "ls" doesn't show
anything. If I do "ls .", it will list all the files. If I go the
actual directory /dir2, "ls" can list all files fine.
If I install latest openssh on the solaris box and use the "sftp"
client from there, "ls" works fine. I also tried "lftp" and "ls" also
shows the files. It seems only Solaris sftp works differently.
I tried both proftpd 1.3.3 and 1.3.4 latest version, same problem.
Is there a compatible option I can set in proftpd to make it work with
Solaris sftp client?
ServerName "ProFTPD SFTP Server"
ServerType standalone
DefaultServer on
UseIPv6 off
Umask 022
MaxInstances 30
User nobody
Group nobody
DefaultRoot ~
AllowOverwrite on
<Limit SITE_CHMOD>
DenyAll
</Limit>
AuthPAMConfig proftpd
AuthOrder mod_auth_file.c
AuthUserFile /usr/local/etc/ftpd.passwd
AuthGroupFile /usr/local/etc/ftpd.group
UseReverseDNS off
<IfModule mod_sftp.c>
SFTPEngine on
SFTPLog /var/log/sftp.log
Port 2222
SFTPHostKey /usr/local/etc/proftp_host_rsa_key
SFTPHostKey /usr/local/etc/proftp_host_dsa_key
SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys
SFTPCompression delayed
MaxLoginAttempts 6
SFTPClientMatch ".*WS_FTP.*" channelWindowSize 256MB
SFTPClientMatch ".*Axway" channelWindowSize 256MB
SFTPClientMatch WinSCP|ClientSftp sftpProtocolVersion 1-3
SFTPOptions IgnoreSFTPUploadPerms IgnoreSCPUploadPerms
</IfModule>
|