|
From: Dieter B. <pr...@bl...> - 2026-05-18 09:49:03
|
Hello, I have a working ProFTPD configuration with a MariaDB backend. The users and their quotas are stored in the database. Files are transferred only via SFTP/SCP. If I set the “quotalimittype” to “hard” and the quota is reached during the upload, the file is deleted from the server, as I would expect and I see a logentry like: "STOR: quota reached: 'filename' removed". However, the client does not receive a notification about this. From the client's perspective, the upload was successful. The docu says, the client should be informed: http://www.proftpd.org/docs/contrib/mod_quotatab.html#QuotaLookup:~:text=and%20a%20message%20returned%20to%20the%20client%20informing%20them%20of%20this%2E I would expect the client to receive an error message at this point. In the draft https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-13#section-9.1, there is the error code SSH_FX_QUOTA_EXCEEDED (15), which, in my opinion, should be returned here. May this be a bug or are my exptectations wrong? Hear are a few lines from my configuration: --snip-- # Quota support QuotaEngine on QuotaOptions ScanOnLogin QuotaShowQuotas on QuotaDisplayUnits Mb SQLNamedQuery get-quota-limit FREEFORM "CALL proc_docker_proftpd_upload_quota( '%U' );" QuotaLimitTable sql:/get-quota-limit QuotaTallyTable file:/var/run/proftpd-quota.tallytab --snip-- The procedure proc_docker_proftpd_upload_quota returns a line like: username, user, true, hard, 100000000, 0, 0, 0, 0, 0 -- Regards Dieter -- I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the From field. |