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
Mandi! Rowland penny via samba In chel di` si favelave...> 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'Again, it is true; but simply someone have to make a note on it (and, ok, code the sript), because repquota/warnquta simply 'does not work' (they are totally unaware of domain users), without warning at all. And probably other tools can have 'drawbacks' like that... Anyway, i've lost some time for: https://sourceforge.net/p/linuxquota/bugs/135/ -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
For the future search:> Anyway, i've lost some time for: > https://sourceforge.net/p/linuxquota/bugs/135/Author reply, problem fixed in 4.04 (that debian buster have); specifically, author say: Well, there's a better solution for this. If you have quota-tools >= 4.04 and if you run at least on kernel 4.6, there is support for Q_GETNEXTQUOTA quotactl and thus quota scanning doesn't need to use iteration over users through getpwent(). FYI. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)