[Pkg-samba-maint] Bug#987993: samba, group disk quota - wrong disk space for clients

Владимир Долинин dolininv at gmail.com
Mon May 3 13:26:10 BST 2021


Package: samba
Version: 2:4.9.5+dfsg-5+deb10u1
Version: 2:4.9.5+dfsg-5+deb10u1

Package: quota
Version: 4.04-2+deb10u1
Version: 4.04-2+b1

Linux hostname 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
GNU/Linux

Dear Maintainer,

Samba server reports to clients wrong disk size. Properties of share - from
desktop machine - show real server storage space (total disk volume), while
I set up the group disk space quota.

This behavior easy reproduced in clean fresh install of Debian 10 with
simple config samba.

/etc/samba/smb.conf:
[global]
   workgroup = WORKGROUP
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes
[myshare]
   comment = My Share
   path = /srv/smb/myshare
   browseable = yes
   readonly = no
   writable = yes
   force group = shared
   create mask = 770
   directory mask = 770

df -h (fragment):
...
/dev/vda7          991M         6,2M  918M            1% /srv/smb
...

/etc/fstab (fragment):
...
UUID=28647ea1-2798-409b-b36d-6606f7ec5595 /srv/smb ext4
defaults,usrquota,grpquota 0 0

repquota -ags
*** Report for group quotas on device /dev/vda7
Block grace time: 7days; Inode grace time: 7days
                        Space limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --     20K      0K      0K              2     0     0
shared    --   5000K  49000K  50000K              3     0     0

User "vlad" member of group "shared", and owner of /srv/smb/myshare -
vlad:shared, access rights - drwxrws---. "vlad" has password (smbpasswd -a
vlad)

On mounted share clients see all 918M instead 50M, how it defined in group
quota. But qroup quota working - not allow to exceed the limit.

User quota work and display properly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20210503/daf7c81f/attachment.htm>


More information about the Pkg-samba-maint mailing list