This module allows the default quota values, in the windows explorer GUI, to be stored on a Samba-3 server.
The challenge is that linux filesystems only store quotas for users and groups, but no default quotas.
Samba returns NO_LIMIT as the default quotas by default and refuses to update them. With this module you
can store the default quotas that are reported to a windows client, in the quota record of a user. By
default the root user is taken because quota limits for root are typically not enforced.
This module takes 2 parametric entries in the smb.conf file. The default prefix for each is the
“default_quota”. This can be overwrittem when you load the module in the
vfs
modules
parameter like this:
vfs objects = default_quota:myprefix
The parametric entries that may be specified for the default_quotas module are:
-
myprefix:uid
-
This parameter takes a integer argument that specifies the uid of the quota record that will be
used for storing the default user quotas.
The default value is 0 (for root user). An example of use is:
vfs objects = default_quota
default_quota: uid = 65534
The above demonstrates the case where the myprefix was omitted, thus the
default prefix is the name of the module. When a myprefix parameter is
specified the above can be re-written like this:
vfs objects = default_quota:myprefix
myprefix: uid = 65534
-
myprefix:uid nolimit
-
This parameter takes a boolean argument that specifies if the stored default quota values also be
reported for the user record, or if the value NO_LIMIT should be reported to
the windows client for the user specified by the
prefix:uid
parameter.
The default value is yes (which means to report NO_LIMIT). An example of use
is shown here:
vfs objects = default_quota:myprefix
myprefix: uid nolimit = no
-
myprefix:gid
-
This parameter takes an integer argument, it's just like the
prefix>:uid
but
for group quotas. NOTE: group quotas are not supported from the windows explorer.
The default value is 0 (for root group). An example of use is shown here:
vfs objects = default_quota
default_quota: gid = 65534
-
myprefix:gid nolimit
-
This parameter takes a boolean argument, just like the
prefix>:uid nolimit
but for group quotas. NOTE: group quotas are not supported from the windows explorer.
The default value is yes (which means to report NO_LIMIT). An example of use
is shown here:
vfs objects = default_quota
default_quota: uid nolimit = no
An example of use of multiple parametric specifications is shown here:
...
vfs objects = default_quota:quotasettings
quotasettings: uid nolimit = no
quotasettings: gid = 65534
quotasettings: gid nolimit = no
...
|