Samba 4 and quota display
Published: November 6, 2017 - 4:42 PM
Hello.
We have successfully set up a test environment using Samba4 (4.7.0 - Debian Stretch 9.2). Several users and groups have been created.
LVM partitions have been mounted for different uses: storage for individual users and user groups (/home/samba/users and /home/samba/groups).
We have implemented quota management for users, and it works. When we set a quota for a user on the user-reserved partition, and that user logs in (Windows 7 or Windows Server 2008 R2), a personal mapped drive is assigned via Group Policy (G:, for example), and this drive correctly displays the used and maximum storage allocated to the user (e.g., 50MB per user).
We use the same principle for groups: we map a drive via Group Policy to the group to which the user belongs (F:, for example, with a maximum storage of 100MB for the group). The mapping works correctly, but the quota display is incorrect. The used/maximum storage values are wrong: the entire disk space of the partition (/home/samba/groups) is displayed. However, the quota is correctly applied; that is, if we try to copy a 150MB file to the group drive, the copy fails because the file size exceeds the drive's limit (100MB). Only the display is incorrect, which is somewhat confusing for users.
Have you encountered this problem before?
Thank you.
We have successfully set up a test environment using Samba4 (4.7.0 - Debian Stretch 9.2). Several users and groups have been created.
LVM partitions have been mounted for different uses: storage for individual users and user groups (/home/samba/users and /home/samba/groups).
We have implemented quota management for users, and it works. When we set a quota for a user on the user-reserved partition, and that user logs in (Windows 7 or Windows Server 2008 R2), a personal mapped drive is assigned via Group Policy (G:, for example), and this drive correctly displays the used and maximum storage allocated to the user (e.g., 50MB per user).
We use the same principle for groups: we map a drive via Group Policy to the group to which the user belongs (F:, for example, with a maximum storage of 100MB for the group). The mapping works correctly, but the quota display is incorrect. The used/maximum storage values are wrong: the entire disk space of the partition (/home/samba/groups) is displayed. However, the quota is correctly applied; that is, if we try to copy a 150MB file to the group drive, the copy fails because the file size exceeds the drive's limit (100MB). Only the display is incorrect, which is somewhat confusing for users.
Have you encountered this problem before?
Thank you.