Mandi! Micha Ballmann via samba In chel di` si favelave...> What shows 'getent passwd'?Only local users, of course. Seems this is the culprit. I've tried 'quota' and works as expected: root at vdmsv1:~# quota -su gaio Disk quotas for user gaio (uid 10000): Filesystem space quota limit grace files quota limit grace /dev/sdb1 204K 51200M 56320M 39 50000 55005 so seems that simply 'repquota' depend heavily on 'enumerated' users. Sorry to all. -- 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)
On 27.03.2018 09:54, Marco Gaiarin via samba wrote:> Mandi! Micha Ballmann via samba > In chel di` si favelave... > >> What shows 'getent passwd'? > > Only local users, of course. > > Seems this is the culprit. I've tried 'quota' and works as expected: > > root at vdmsv1:~# quota -su gaio > Disk quotas for user gaio (uid 10000): > Filesystem space quota limit grace files quota limit grace > /dev/sdb1 204K 51200M 56320M 39 50000 55005 > > so seems that simply 'repquota' depend heavily on 'enumerated' users.Correct, and it's not the only tool that relies on this assumption. The smb.conf manpage warns of this: "Warning Turning off user enumeration may cause some programs to behave oddly. For example, the finger program relies on having access to the full user list when searching for matching usernames." The default for 'winbind enum users' changed a while back iirc. It defaults to off now and I've had no luck forcing it back on. Cheers Malte zu Klampen
On Tue, 27 Mar 2018 16:38:29 +0200 Malte zu Klampen via samba <samba at lists.samba.org> wrote:> > so seems that simply 'repquota' depend heavily on 'enumerated' > > users. > > > Correct, and it's not the only tool that relies on this assumption. > > The default for 'winbind enum users' changed a while back iirc. It > defaults to off now and I've had no luck forcing it back on. >You can turn them back on, if you must, by adding 'winbind enum users yes' and 'winbind enum groups = yes' to smb.conf. But before you do this, try adding '-C' to the repquota command Rowland