[Samba] testparm comaprison

Rowland penny rpenny at samba.org
Mon Sep 23 14:35:07 UTC 2019


On 23/09/2019 15:18, Marco Gaiarin via samba wrote:
> Mandi! Rowland penny via samba
>    In chel di` si favelave...
>
>> I repeat (louder this time): NO ONE NEEDS THE 'WINBIND ENUM' LINES IN
>> SMB.CONF
> While it is true that i can live happily without 'winbind enum', it is
> not completely true that 'no one needs' that.
>
> For example, quota:
>
>   root at vdmsv1:~# repquota -a
>   *** Report for user quotas on device /dev/sdc1
>   Block grace time: 28days; Inode grace time: 28days
>                           Block limits                File limits
>   User            used    soft    hard  grace    used  soft  hard  grace
>   ----------------------------------------------------------------------
>   root      -- 16735556       0       0            664     0     0
>   debian-spamd --    1216       0       0             17     0     0
>   help      --      48       0       0             10     0     0
>   
>
> While clearly if i explicitly ask quota, works as expected:
>
>   root at vdmsv1:~# quota gaio
>   Disk quotas for user gaio (uid 10000):
>        Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
>         /dev/sdc1  557512  52428800 57671680            2012   50000   55005
> or:
>   root at vdmsv1:~# quotatool -u gaio -d /dev/sdc1
>   10000 /dev/sdc1 557588 52428800 57671680 0 2012 50000 550050
>
>
> This, most notably, 'broke' warnquota, that does not send warning to
> users; i need to 'code' a different warning script, because simply
> warnquota is no more able to enumerate users...
>
For normal use, nobody needs 'winbind enum' and you will be able to 
script around 'repquota' without the 'winbind enum' lines in smb.conf, 
probably using a for loop around the output of 'wbinfo -u'

Rowland





More information about the samba mailing list