![]() |
ftp user bug? - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: ftp user bug? (/thread-14037.html) Pages: 1 2 |
RE: ftp user bug? - nightworm - 06-09-2011 08:18 PM I have exctly the same problem like Haros. If you choose a directory of a subdomain for a FTP user you are not able to delete or overwrite files. You will get the "operation not permitted error 550". But if you choose the root directory of your domain there is no problem! I checked the file system UID and also the UID in the SQL tables. Can't see any difference. I have absolute no idea where to look or what to search for. Use: Debian Squeeze / proftpd-basic 1.3.3a-6squeeze1 There was one more user with the same error. His solution was to add new ISPCP user for the subdomain. Thread: http://isp-control.net/forum/thread-13167-post-96352.html#pid96352 RE: ftp user bug? - joximu - 06-10-2011 08:50 AM I can confirm. Debian squeeze 6. Add Subdomain (sub.domain.com) and add ftp-user with home "sub" then I can upload but not delete files or folders. When I take sub.domain.com.conf out of /etc/proftpd/ispcp and restart proftpd then it works again - so there are obviously some rules in this file which are not ok... I did not explicitly test but it seems to work on lenny... - at least I did not read here... :-/ I'll try to find the block in the conf file which is disturbing... Just wondering: why do we have blocks in this file for backups, errors, logs and statistics? - theese folders are only present in main domains - not in subdomains. Domain aliases have errors and logs - but also not backups or statistics... /J Ok, I tracked it down... to this block: Code: <Directory /var/www/virtual/domain.com/sub/htdocs/*> if I comment the lin AllowAll then it works... - very strange!!! But I still cannot delete htdocs itself.... So it seems we could simply reduce this file! Could others also test? /J RE: ftp user bug? - kilburn - 06-10-2011 04:44 PM I tested in lenny and squeeze: squeeze fails (and your fix works), lenny does not. I think it is a bug in ProFTPD itself. However, you are right in that there are too many directives there. If you comment out the whole "htdocs" directory blocks for the subdomains, the problem disappears yet users still can not delete the htdocs folder. The reason why "htdocs" can not be deleted is because of the "root_domain.conf" file that already builds the necessary protections based on the user's home directory. However, by commenting that block the main user would be able to remove the subdomain's htdocs folder, something we don't want to happen... RE: ftp user bug? - nightworm - 06-10-2011 04:48 PM I can confirm that this file is the reason why this does not work. Code: /etc/proftpd/ispcp/sub.domain.de-conf As described by joximu there are some pathes that doesn't exist for subdomains. If I comment the line everything works fine again. Code: <Directory /var/www/virtual/domain.com/sub/htdocs/*> Best regards nightworm RE: ftp user bug? - Haros - 06-10-2011 10:38 PM I second that this "fix" works. So, is this a problem of proftpd under debian squeeze or ispcp? I mean will this be fixed on the next ispcp release? RE: ftp user bug? - joximu - 06-11-2011 12:10 AM For now I'd say it's a problem with the proftpd delivered with squeeze... because ispcp did not change anything... *but* - maybe - proftpd changed something and it's in the docu but noone@ispcp did read this and could change anything... so... I think we should find the best solution and implement it. It can be fixed by changing the corresponding tpl files... /J |