Hi! Just wondering if anyone here has a working setup of Samba + quotas on linux ext2... Quotas on the underlying fs is fine and samba does respect the quota limits, but the free space reported is the entire disk free space, not the user's free quota. I've seen many problems like mine, also some patches to correct this, but all unsuccesful. Anyone has this working? Using: red hat 7.1, kernel 2.4.3-12, quota pkg 3.01-pre9 and samba cvs (SAMBA_2_2 tag) from today. Clients are all w2k sp1. cheers Gustavo
Hi list, For anyone who may be interested, Scott Armstrong solved my problem. He sent me his quotas.c patched by him to solve this problem and now it is working perfectly! I think someone from the samba team could reserve some time to add this patch for the next samba release, as it seems to be very small and easy. And it solves LOTS os problems for corporate users like me... Well, thanks again to Mr. Armstrong and also to the Samba Team for making such a great software! cheers Gustavo> -----Original Message----- > From: Michels, Gustavo [EES/BR] > Sent: ter?a-feira, 18 de setembro de 2001 15:39 > To: samba@lists.samba.org > Subject: ext2 + quotas > > > Hi! > > Just wondering if anyone here has a working setup of Samba + > quotas on linux > ext2... Quotas on the underlying fs is fine and samba does > respect the quota > limits, but the free space reported is the entire disk free > space, not the > user's free quota. > > I've seen many problems like mine, also some patches to > correct this, but > all unsuccesful. Anyone has this working? > > Using: red hat 7.1, kernel 2.4.3-12, quota pkg 3.01-pre9 and samba cvs > (SAMBA_2_2 tag) from today. Clients are all w2k sp1. > > cheers > Gustavo > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Hi, * On Tue, Sep 18, 2001 at 07:39 PM (+0100), Michels, Gustavo [EES/BR] wrote:> Just wondering if anyone here has a working setup of Samba + quotas on linux > ext2... Quotas on the underlying fs is fine and samba does respect the quota > limits, but the free space reported is the entire disk free space, not the > user's free quota.I have got excatly the same problem here. At first I supposed that it might be caused by the new quota code ("vfsv0"). I have to use this new quota code because "ext3" does not work together with "vfsold" - the old quota code. Some information about my system: SuSE Linux 7.2, kernel "linux-2.4.9-ac10" (patched with "ext3-0.9.9") and "samba-2.2.1a" (of course, with enabled disk quota support). Alan Cox' kernel series ("ac") comes with the new quota code "vfsv0" which uses "aquota.user" and "aquota.group" instead of "quota.user" and "quota.group".> I've seen many problems like mine, also some patches to correct this, but > all unsuccesful. Anyone has this working?I haven't tried a recent CVS version of samba, yet.> Using: red hat 7.1, kernel 2.4.3-12,I don't think that kernel "linux-2.4.3" (vanilla) comes with "vfsv0". But the suffix "-12" might point to a special distributor's (Redhat) kernel, so perhaps you've got "vfsv0" support? Do you have a file called "quota.user" or is it called "aquota.user"?> quota pkg 3.01-pre9Here: 3.01pre5> Clients are all w2k sp1.Here: Windows 98 second edition- Bye, Steffen
On Tue, 18 Sep 2001, Michels, Gustavo [EES/BR] wrote:> For anyone who may be interested, Scott Armstrong solved my problem. > He sent me his quotas.c patched by him to solve this problem and now > it is working perfectly!We probably have this samba-patches, but could you send it me to save time? Thanks. cheers, jerry. --------------------------------------------------------------------- www.samba.org SAMBA Team jerry_at_samba.org www.plainjoe.org jerry_at_plainjoe.org --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
On Wed, Sep 19, 2001 at 09:30:24AM -0500, Gerald Carter wrote:> On Tue, 18 Sep 2001, Michels, Gustavo [EES/BR] wrote: > > > For anyone who may be interested, Scott Armstrong solved my problem. > > He sent me his quotas.c patched by him to solve this problem and now > > it is working perfectly! > > We probably have this samba-patches, but could you send it me > to save time? Thanks.The problem with this is it is including kernel header files directly. This is a bit of a no-no in application code... Jeremy.
On Wed, 19 Sep 2001, Jeremy Allison wrote:> On Wed, Sep 19, 2001 at 09:30:24AM -0500, Gerald Carter wrote: > > On Tue, 18 Sep 2001, Michels, Gustavo [EES/BR] wrote: > > > > > For anyone who may be interested, Scott Armstrong solved my problem. > > > He sent me his quotas.c patched by him to solve this problem and now > > > it is working perfectly! > > > > We probably have this samba-patches, but could you send it me > > to save time? Thanks. > > The problem with this is it is including kernel header files > directly. This is a bit of a no-no in application code...Ah...ok. I remember this one now.... jerry
We had similar permission issues. I suggest you try putting into your smb.conf file "inherit permissions = yes". All files created in the directory have the same permissions and ownership as the parent directory. ==========================================================================Hi all, I've got a question regarding file permissions. I've eventually managed to get a Win2K Samba Server running, and it's very nearly perfect! Or at least, as perfect as NT gets... :-) So, my last problem is that despite setting the network drive permissions (/export/samba/data) as 770, any files written to this directory by samba (the end user) are written with 755 permissions, with the consequence of any files being created by a user may be read by his or her colleagues, but not amended or overwritten by them. I've tried convincing the users of this Server that this is network security and they have to make duplicate copies, but they're not having any of it!!
Hi there, Just for your information: I had that working quota report under Samba. Now I had to upgrade the kernel to 2.4.9 (needed support for ACLs, previous was RH kernel 2.4.3-12) and the quota report under samba is not working anymore... Probably that linux/sys quotas.h problem... cheers Gustavo> -----Original Message----- > From: jra@samba.org [mailto:jra@samba.org] > Sent: quarta-feira, 19 de setembro de 2001 14:52 > To: Gerald Carter > Cc: Michels, Gustavo [EES/BR]; jra@samba.org; samba@lists.samba.org > Subject: Re: ext2 + quotas > > > On Wed, Sep 19, 2001 at 09:30:24AM -0500, Gerald Carter wrote: > > On Tue, 18 Sep 2001, Michels, Gustavo [EES/BR] wrote: > > > > > For anyone who may be interested, Scott Armstrong solved > my problem. > > > He sent me his quotas.c patched by him to solve this > problem and now > > > it is working perfectly! > > > > We probably have this samba-patches, but could you send it me > > to save time? Thanks. > > The problem with this is it is including kernel header files > directly. This is a bit of a no-no in application code... > > Jeremy. >
I've been doing some more testing, maybe helpful for you... Quotas on the filesystem were fine (vfsv0) but, I don't know why, suddenly I was having some troubles with the vfsv0 quota system. Quotacheck was creating aquota.user and quotaon was looking for quota.user. So, I ran quotacheck -F vfsold so quotaon would find the file it needed. Ok, now quota was working and samba was reporting the correct user's free quota, the way it should. With vfsv0, it wasn't reporting correctly. Now I am having some more troubles, with vfsold, as the quotas aren't being updated after someone writes to the disk (quotacheck complains about active processes but fuser -m /mount_point doesn't return anything). So, as my system was like crap, I dedided to start over. That's what I am doing now :-) Then I'll try everything again. If I have any new information, I'll post here. cheers Gustavo> -----Original Message----- > From: jra@samba.org [mailto:jra@samba.org] > Sent: sexta-feira, 21 de setembro de 2001 16:55 > To: Michels, Gustavo [EES/BR] > Cc: jra@samba.org; Gerald Carter; samba@lists.samba.org > Subject: Re: ext2 + quotas > > > On Thu, Sep 20, 2001 at 01:03:18PM +0100, Michels, Gustavo > [EES/BR] wrote: > > Hi there, > > > > Just for your information: I had that working quota report > under Samba. Now > > I had to upgrade the kernel to 2.4.9 (needed support for > ACLs, previous was > > RH kernel 2.4.3-12) and the quota report under samba is not working > > anymore... > > > > Probably that linux/sys quotas.h problem... > > I'm trying to nail this one at the moment. Problem is, on my > RH7.1 system > if I replace sys/quotas.h with linux/quotas.h it fails to compile.... > > Hmmm... more work needed :-(. > > Jeremy. >
Jeremy, I guess that's the patch Scott Armstrong submitted, isn't it? I am currently compiling the 2.4.9 kernel on my clean rh 7.1 system, so I guess quota still won't work for me... And I found out I can't use Alan Cox's kernels 'cause there's no acl support for them yet (the main reason I am upgrading to 2.4.9). Well, let's do some testing... :-) cheers Gustavo> -----Original Message----- > From: jra@samba.org [mailto:jra@samba.org] > Sent: sexta-feira, 21 de setembro de 2001 19:14 > To: Trond Eivind Glomsr?d > Cc: Jeremy Allison; Michels, Gustavo [EES/BR]; Gerald Carter; > samba@lists.samba.org > Subject: Re: ext2 + quotas > > > Ok, I've just committed a solution that seems to allow Samba > to correctly report quotas on a RH7.1 Linux system with a > stock RH7.1 kernel. > > God help you though, if you reboot with a Linus 2.4.9 kernel, > I don't think it'll work.... > > It should work on other Linux systems that don't use the new > quota system, but it'll have to be compiled on the system > you intend to use it on. Also, it had to include <linux/quota.h> > in order to get it to work this much. > > This is *not* a good situation for App. vendors to be in, and > I hope it gets resolved by the Linux kernel teams asap. > > Cheers, > > Jeremy. >
I forgot to mention. I read somewhere in the web (I guess at linuxquota page at sourceforge) that vfsv0 works only on ac and rh kernels. For the rest, only vfsold works. Dunno if it's true, but I feel like trying the ac kernel, as I need reliable acl and quota support. cheers Gustavo> -----Original Message----- > From: jra@samba.org [mailto:jra@samba.org] > Sent: sexta-feira, 21 de setembro de 2001 16:55 > To: Michels, Gustavo [EES/BR] > Cc: jra@samba.org; Gerald Carter; samba@lists.samba.org > Subject: Re: ext2 + quotas > > > On Thu, Sep 20, 2001 at 01:03:18PM +0100, Michels, Gustavo > [EES/BR] wrote: > > Hi there, > > > > Just for your information: I had that working quota report > under Samba. Now > > I had to upgrade the kernel to 2.4.9 (needed support for > ACLs, previous was > > RH kernel 2.4.3-12) and the quota report under samba is not working > > anymore... > > > > Probably that linux/sys quotas.h problem... > > I'm trying to nail this one at the moment. Problem is, on my > RH7.1 system > if I replace sys/quotas.h with linux/quotas.h it fails to compile.... > > Hmmm... more work needed :-(. > > Jeremy. >
Just a follow-up: with a clean redhat kernel (2.4.3-12), quotas are working just fine, both on the filesystem and samba. With 2.4.9, quotas definitely aren't working, at least on a redhat based box. I haven't tried ac kernels 'cause they don't support acls (and bestbits don't have any patches for them). cheers Gustavo> -----Original Message----- > From: jra@samba.org [mailto:jra@samba.org] > Sent: sexta-feira, 21 de setembro de 2001 19:14 > To: Trond Eivind Glomsr?d > Cc: Jeremy Allison; Michels, Gustavo [EES/BR]; Gerald Carter; > samba@lists.samba.org > Subject: Re: ext2 + quotas > > > Ok, I've just committed a solution that seems to allow Samba > to correctly report quotas on a RH7.1 Linux system with a > stock RH7.1 kernel. > > God help you though, if you reboot with a Linus 2.4.9 kernel, > I don't think it'll work.... > > It should work on other Linux systems that don't use the new > quota system, but it'll have to be compiled on the system > you intend to use it on. Also, it had to include <linux/quota.h> > in order to get it to work this much. > > This is *not* a good situation for App. vendors to be in, and > I hope it gets resolved by the Linux kernel teams asap. > > Cheers, > > Jeremy. >