[Proftpd-user] activate QuotaEngine dependent on login name
Dieter Bloms via Proftp-user <[email protected]> Mon, 16 Dec 2024 11:00:21 +0100
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <f7rphnbzxiicrgbuo4imul5e64hqhf4ht3e3j5vi2wnmhyiwuv@f2cmvmeo6gtj> |
Hello,
I try to activate the quota support dependent on the login name.
Lets say I want to activate quota support for user1 and deactivate it for
all other users
TraceLog /var/log/proftpd/trace.log
Trace ifsession:20
<Global>
DefaultRoot ~/
...
QuotaLimitTable file:/etc/proftpd/ftpquota.limittab
QuotaTallyTable file:/etc/proftpd/ftpquota.tallytab
QuotaLog /var/log/proftpd/quota.log
QuotaOptions ScanOnLogin
QuotaDefault user false hard 5242880 0 0 100000 0 0
QuotaDisplayUnits Mb
QuotaShowQuotas on
</Global>
<VirtualHost 0.0.0.0>
Port 21
<IfUser user1>
QuotaEngine off
</IfUser>
<IfUser !user1>
QuotaEngine on
</IfUser>
</VirtualHost>
In the tracelogs I see lines like:
--snip--
2024-12-16 10:54:02,769 [28] <ifsession:15>: removing 'QuotaEngine' config because c->flags does not contain MULTI or MERGEDOWN_MULTI
2024-12-16 10:54:02,769 [28] <ifsession:9>: removing 'QuotaEngine' config
2024-12-16 10:54:02,769 [28] <ifsession:9>: adding 'QuotaEngine' config
2024-12-16 10:54:02,769 [28] <ifsession:11>: resolved <Directory /*> to <Directory /*>
--snip--
So I think it is not supported to activate/deactivate the quota support with
ifsession modul on username basis.
Does anybody has an idea how to configure quota activation depend on
loginname?
--
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.
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html