On May 7, 2010, at 12:40 PM, TJ Saunders wrote:
>
>> Server is proftpd 1.3.3 running ftp and sftp. I can't delete files or
>> upload files using the command line sftp client in a directory where I
>> should be able to.
>
> What does the SFTPLog show? What does proftpd debug logging show?
I forgot about SFTPLog. :-)
May 07 12:46:43 mod_sftp/0.9.7[4204]: error checking '/usr/local/ftp/business-services/html/ecard/sites/ecard.business-services.upenn.edu/av-8546.jpg' for REALPATH: No such file or directory
May 07 12:46:43 mod_sftp/0.9.7[4204]: OPEN command for '/usr/local/ftp/business-services/html/ecard/sites/ecard.business-services.upenn.edu/av-8546.jpg' blocked by 'STOR' handler
And now if I try to get a file I get this:
May 07 12:48:41 mod_sftp/0.9.7[4234]: OPEN command for '/usr/local/ftp/business-services/html/ecard/sites/ecard.business-services.upenn.edu/foo' blocked by 'RETR' handler
This problem seems intermittent which is messing with my head. Some clients work some time and not others. I'm not sure what is happening or why at this point. Sending a HUP to the server may make it work again.
The nearest .ftpaccess file is in /usr/local/ftp/business-services/html with this contents:
<Limit READ WRITE>
AllowUser speno
DenyAll
</Limit>
>> I see sftp does an LSTAT, then REMOVE, which fails while Fetch does
>> DELE, which works, and a REMOVE which does what exactly?
>
> LSTAT and REMOVE are SFTP request codes; the REMOVE request code maps to
> the DELE FTP command, which proftpd dispatches internally, for any modules
> which may wish to handle the DELE command (e.g. mod_quotatab).
That get's back to my intermittent issue then. When Fetch issued a REMOVE, it worked, but when
sftp did, it failed. I've had Fetch also stop working during some sessions too. :(
Thanks!
|