[Bug 1296488] Re: Can't replace exist file by mod-sftp
I run proftpd -nb10 Here is the debug log when I upload file and fail: server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_exec server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_rewrite server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_tls server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_core server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_core server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_ratio server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_quotatab server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching PRE_CMD command 'STOR /test.txt' to mod_xfer server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): in dir_check_full(): path = '/test.txt', fullpath = '/home/test/test.txt'. server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): in dir_check_full(): setting umask to 0002 (was 0002) server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): AllowOverwrite denied permission for /test.txt server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching POST_CMD_ERR command 'STOR /test.txt' to mod_exec server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching POST_CMD_ERR command 'STOR /test.txt' to mod_quotatab server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching LOG_CMD_ERR command 'STOR /test.txt' to mod_log server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching LOG_CMD_ERR command 'STOR /test.txt' to mod_xfer server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching POST_CMD_ERR command 'OPEN /test.txt' to mod_exec server_a proftpd[25106] 192.168.1.1 (172.16.22.194[172.16.22.194]): dispatching LOG_CMD_ERR command 'OPEN /test.txt' to mod_log server_a proftpd[25036] 127.0.1.1: scrubbing scoreboard server_a proftpd[25036] 127.0.1.1: ROOT PRIVS at scoreboard.c:1369 server_a proftpd[25036] 127.0.1.1: RELINQUISH PRIVS at scoreboard.c:1372 server_a proftpd[25036] 127.0.1.1: ROOT PRIVS at scoreboard.c:1403 server_a proftpd[25036] 127.0.1.1: RELINQUISH PRIVS at scoreboard.c:1509 server_a proftpd[25036] 127.0.1.1: finished scrubbing scoreboard -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1296488 Title: Can't replace exist file by mod-sftp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/proftpd-dfsg/+bug/1296488/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1296488] Re: Can't replace exist file by mod-sftp
Thanks TJ Saunders, follow is his reply: Here's your culprit here. By default, proftpd does not allow overwriting of existing files (this includes appending to existing files); see: http://www.proftpd.org/docs/directives/linked/config_ref_AllowOverwrite.html This means that adding e.g.: Global AllowOverwrite on /Global to your proftpd.conf should help. And it's works. ** Changed in: proftpd-dfsg (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1296488 Title: Can't replace exist file by mod-sftp To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/proftpd-dfsg/+bug/1296488/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs