|
From: 刘知言 <lz...@gm...> - 2010-07-09 08:54:43
|
Hi, all:
I use 1.3.3a (and tried 1.3.3) on RHEL 5.3 x86_64 os, when I use sftp
client to connect proftd sftp server, I got this error:
=======================
FTP session opened.
Preparing to chroot to directory '/home/home_sftp/testuser'
USER testuser: Login successful
mod_cap/1.0: setreuid: Operation not permitte
SSH2 session closed.
=======================
and client sftp socket reset by peer.
the proftp config is:
=======================
ServerName "TEST SFTP Server"
ServerType standalone
DefaultServer on
Port 21
UseIPv6 off
Umask 022
MaxInstances 30
User nobody
Group nobody
DefaultRoot /home/test_sftp
AllowOverwrite on
<Limit SITE_CHMOD>
DenyAll
</Limit>
<IfModule mod_auth_pam.c>
AuthPAM off
</IfModule>
<IfModule mod_cap.c>
CapabilitiesEngine on
CapabilitiesSet +CAP_CHOWN +CAP_DAC_READ_SEARCH +CAP_FOWNER
</IfModule>
<IfModule mod_sftp.c>
<VirtualHost 192.168.0.1>
SFTPEngine on
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPHostKey /etc/ssh/ssh_host_dsa_key
SFTPLog /var/log/proftpd_sftp.log
Port 2022
SFTPHostKey /etc/ssh/ssh_host_rsa_key
SFTPHostKey /etc/ssh/ssh_host_dsa_key
SFTPAuthorizedUserKeys file:/home/test_sftp/.sftp/authorized_keys
SFTPCompression delayed
MaxLoginAttempts 6
DefaultRoot ~
CreateHome on
QuotaEngine on
QuotaDirectoryTally on
QuotaDisplayUnits Mb
QuotaShowQuotas on
QuotaOptions ScanOnLogin
QuotaLog /var/log/quota
SQLAuthTypes Backend Plaintext
SQLAuthenticate users groups
# SQLConnectInfo, SQLUserInfo, SQLGroupInfo at this...........
</VirtualHost>
</IfModule>
=======================
How to slove this error? Is this a question about linux capabilities
upgrade in rhel 5.3. I can success connect proftpd in rhtl 5.0 & 5.1
env.
I need help, thanks very much!
LiuZhiyan
2010.07.09
|