Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Aug 2004 10:44:14 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: 16-character username limit in quotas?
Message-ID:  <20040820102224.P6881@duey.wolves.k12.mo.us>
In-Reply-To: <20040820015412.GA8165@dan.emsphone.com>
References:  <20040819183508.X95665@duey.wolves.k12.mo.us> <20040820015412.GA8165@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Aug 2004, Dan Nelson wrote:

> In the last episode (Aug 19), Chris Dillon said:
>> I've just run into a 16-character username limit in our quota
>> support, or at least in the edquota command itself (5-CURRENT):
>>
>> edquota -u -e /afilesystem:614400:716800:4000:5000 areallylongusername
>> edquota: areallylongusern: no such user
>>
>> Does anybody know what would it take to raise this limit to at least
>> 32 characters?
>
> Try bumping MAXLOGNAME in /usr/include/sys/param.h and UT_NAMESIZE in
> /usr/include/utmp.h and rebuilding world.

Thank you, I'm building a new kernel+world right now.  For some reason 
I thought we had already bumped those particular limits up past 16 
characters so I didn't look at them.  I ran into this problem because 
I'm using Samba's winbindd with nsswitch, and the usernames are 
prepended with our Windows 2000 domain name, making them longer than 
usual.  Samba, chown, ls, etc. don't seem to have a problem with these 
long names (nsswitch is great!), so they must not pay any attention to 
MAXLOGNAME and UT_NAMESIZE and that's what made me think it was 
specific to quotas.  Is there any reason this couldn't be bumped up to 
32 characters (or more) by default for better compatability with 
alternate namespaces?

-- 
  Chris Dillon - cdillon(at)wolves.k12.mo.us
  FreeBSD: The fastest, most open, and most stable OS on the planet
  - Available for IA32, IA64, AMD64, PC98, Alpha, and UltraSPARC architectures
  - PowerPC, ARM, MIPS, and S/390 under development
  - http://www.freebsd.org

Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040820102224.P6881>