0

I want to create smb shares that are limited by a given quota size also I want to be able to modify the quota size in the future. While searching for a solution I came across the setquota command but I guess it only gives the option to implement per user and per group size quota limit but not on per folder/filesystem basis.

Then, I tried doing this using this https://superuser.com/a/976714 answer. The problem is file size modified using the "dd" command is correctly showing an increased size on the Ubuntu system, but the modified size is not reflected to the users (i.e. they still see the old size). The added space is shown as free space in parted tool.

1 Answers1

0

From what I understand, SMB won't provide this functionality as it's file transfer protocol. The disk quota needs to be set with the file system itself (depending on your fs ext4,brtft,zfs,xfs).

Providing the file system reports that there is no space for a given user, SMB will ultimately fail to continue writing data if the allocated space is exhausted.

jamboNum5
  • 116
  • 1