Date: Sun, 18 Oct 2009 14:19:19 +0200 From: Stefan Miklosovic <miklosovic.freebsd@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: strange quota behaviour Message-ID: <f99a79ec0910180519w75e58952p9939e62e5c43fac2@mail.gmail.com> In-Reply-To: <f99a79ec0910180513n4200999fx8c510d573fedd462@mail.gmail.com> References: <f99a79ec0910180513n4200999fx8c510d573fedd462@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
hi again, I correct my post, of course I can set quotas for that user, by setquota command, but I cant see quotas for that user, only by repquota. I need to see it by quota command because I write a script where I depend on it. On Sun, Oct 18, 2009 at 2:13 PM, Stefan Miklosovic < miklosovic.freebsd@gmail.com> wrote: > hi list, > > I am going to add user "test" in system: > ~/:sudo pw useradd test -m > > then, I am going to check quotas > ~/:sudo quota -u -v test > Disk quotas for user test (uid 2022): > Filesystem usage quota limit grace files quota limit > grace > /home 36 0 0 9 0 > 0 > > Now, I am going to add another user, named "12345" > ~/:sudo pw useradd 12345 -m > Password for '12345' is: qdmjPx4YVP > > then, I am going to check quotas > ~/:sudo quota -u -v 12345 > Disk quotas for user (no account) (uid 12345): > Filesystem usage quota limit grace files quota limit > grace > /home 0 0 0 0 0 > 0 > > Please, note that in quota output for user 12345, it says, there is no such > user > > Disk quotas for user (no account) (uid 12345): > > if I do this: > ~/odoslat:sudo pw useradd m12345 -m > Password for 'm12345' is: 8bqhCfMjZREr5D8 > ~/odoslat:sudo quota -u -v m12345 > Disk quotas for user m12345 (uid 2024): > Filesystem usage quota limit grace files quota limit > grace > /home 36 0 0 9 0 > 0 > > everything is fine. > > So question, I am able to create user 12345, but I cant set quotas for him? > > Isn't this a bug? > > FreeBSD notebook 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Oct 15 22:38:28 CEST > 2009 root@notebook:/usr/obj/usr/src/sys/NOTEBOOK i386 > > thank you > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f99a79ec0910180519w75e58952p9939e62e5c43fac2>