Ticket #2568 (new malfunction)
FTP-Users for subdomains and domain aliases cannot delete files/folders
|Reported by:||tvolland||Owned by:|
|Priority:||normal||Milestone:||ispCP ω 1.2.0|
|Component:||Backend (Engine)||Version:||ispCP ω 1.0.7|
FTP-Users with the homedir set to a subdomain- or domain-alias-folder cannot delete files or folders.
- Debian squeeze
- ProFTPd 1.3.3a
- Create subdomain, e.g. sub.domain.tld. Mointpoint = /sub
- Create FTP-user, e.g. sample@…, Root-Directory = /sub
- login as FTP-user via FTP-client
- upload a file
- try to delete file => error 550 Operation not permitted.
Cause: I assume there have been some changes in ProFTPd with the <Directory> rules handling since my last working version 1.3.1. In the scenario described above there are two rules for one directory, namely root_domain.conf and sub.domain.tld.conf in /etc/proftpd/ispcp. root_domain.conf defines rules relative to the current homedir, sub.domain.tld.conf defines rules for absolute paths.
Solution: I removed root_domain.conf and enhanced the Domain Manager so that directory rule files are not only created for Domain aliases and subdomains, but also for domains. For each domain, a domain.tld.conf file is now created in /etc/proftpd/ispcp. This solved the problem for me.