[Samba] Quota over SMBLDAP

Mohit S. Solanki mohit.s.solanki at gmail.com
Thu Sep 3 10:38:09 UTC 2015

Hello Admins,

I am implementing samba over LDAP which is working find with centralized
login. Now looking for implementing quota per user over /home partition.
Users are around 500. And I want to give all of them 2Gigs space each. I
have tried configuring smb.conf as -

        comment = Home Directories
        browseable = yes
        writable = yes
        valid users = SMBLDAP\%S
        create mask = 0777
        directory mask = 0777
        vfs objects = default_quota
        default_quota: uid = 11188

fstab as -
/dev/vda1               /home                   ext4
 defaults,usrjquota=aquota.user,jqfmt=vfsv0      0 0

requota -au is showing user's quota configuration, but I am checking it
through -

# smbcquotas -F //localhost/homes
Enter root's password:
File System QUOTAS:
 Default Soft Limit:        NO LIMIT
 Default Hard Limit:        NO LIMIT
Quota Flags:
 Quotas Enabled: Off
 Deny Disk:      Off
 Log Soft Limit: Off
 Log Hard Limit: Off

Quotas are still off for homes.

Can you please help what should be done here to enable quota for homes I
have tried every possible solutions available online and still no luck and
I am quite stuck here.

Looking forward for your positive response soon.

*Thanks & Regards,*

Mohit S. Solanki
*Linux System Administrator*

More information about the samba mailing list