Date: Mon, 20 Dec 1999 08:27:37 -0500 From: "Chuck O'Donnell" <cao@bus.net> To: "Forrest W. Christian" <forrestc@iMach.com> Cc: stable@FreeBSD.ORG Subject: Re: edquota problem Message-ID: <19991220082737.A19220@bus.net> In-Reply-To: <Pine.BSF.3.96.991219215559.10149C-100000@workhorse.iMach.com>; from Forrest W. Christian on Sun, Dec 19, 1999 at 10:06:19PM -0700 References: <Pine.BSF.3.96.991219215559.10149C-100000@workhorse.iMach.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 19, 1999 at 10:06:19PM -0700, Forrest W. Christian wrote: > I'm not sure exactly what list this should really be on. Please enlighten > me for next time. > > I just got nailed by an "implementation detail" in edquota. > > Specifically the code which determines whether the parameter is a username > or a range of uids only checks for a) whether the first character of the > parameter is a number and b) whether there is a dash in the parameter. > > Of course, I have a system with a user with the username of 2-xhibit (no I > can't get the user to change), which makes edquota think that that > username parameter is actually a uid range which it interprets as meaning > the range of 2-0, which it errors out on. > > IMHO, I think that either fixing this to actually check to see if the > parameter is ONLY numbers and a single hyphen would be a good idea. Of > course, this then doesn't permit usernames of like 10-4 or something like > that. > > The other option would be to check the parameter FIRST against the > password file and if the parameter is a valid username, then use it as a > username instead of a range. > > Alternatively, providing a switch to force one way or the other would be > ok also. > > I would patch the code and submit a fix if I knew what people thought the > best way to fix this is, or if even people think that it should be changed > at all. did you try `edquota -- 2-xhibit' ? chuck > > - Forrest W. Christian (forrestc@imach.com) KD7EHZ > ---------------------------------------------------------------------- > iMach, Ltd., P.O. Box 5749, Helena, MT 59604 http://www.imach.com > Solutions for your high-tech problems. (406)-442-6648 > ---------------------------------------------------------------------- > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991220082737.A19220>