I don't think that's possible at the protocol level for SMB. You can set quotas ZFS datasets that limits the total size of the dataset, but not the individual files.
Specifically, you can edit /etc/login.conf (or use racct / rctl) to impose filesize limits: https://www.freebsd.org/doc/handbook/security-resourcelimits.html
The problem with this approach is that it will most likely not persist across reboots, which means creating an init script to impose a filesize limit on the group of users.
Dear All,
Thank you for your replied. I could not found the "/etc/security/limits.conf" and also I use the CIFS service.
So the solution could not be done, please advise.
Thank you.
Dear All,
Thank you for your replied. I could not found the "/etc/security/limits.conf" and also I use the CIFS service.
So the solution could not be done, please advise.
Thank you.
Well, after looking at it a bit closer, I don't think that using racct / rctl as a way of limiting size of files copied by samba is practical. I'm a bit curious, why do you need to do this?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.