NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Override the 16 chars username length



At Wed, 7 Dec 2011 02:23:26 +0000 (UTC), christos%astron.com@localhost 
(Christos Zoulas) wrote:
Subject: Re: Override the 16 chars username length
> 
> In article <B247B266-C7E0-43D8-A88A-25679528492F%dragas.dyndns.org@localhost>,
> Stefano Marinelli  <postnet%dragas.dyndns.org@localhost> wrote:
> >Hello everybody,
> >after some tweaking, I've been able to install a fully working
> >Virtualmin on a NetBSD-5 host. Everything is ok, except importing
> >already existing domains from a Debian Virtualmin installation.
> >The problem is that Virtualmin, on Debian, created long usernames while
> >NetBSD refuses to add users longer than 16 chars. On FreeBSD I was able
> >to modify some lines in the sources and solve the problem, is it also
> >possible on NetBSD? Where should I look?
> 
> change LOGIN_NAME_MAX and recompile everything.

You may need to bump L_cuserid to match as well if you have any programs
which use cuserid(3), or any programs which use L_cuserid; and of course
those programs may also need to be recompiled and relinked.

I've had both doubled on all the systems I've built and used since the
1.6 days.

There are some programs which print usernames in columnar formatted
tables which don't cope well with even 16-character usernames, but so
far as I know nothing has ever actually broken when handed 32-character
names.

-- 
                                                Greg A. Woods
                                                Planix, Inc.

<woods%planix.com@localhost>       +1 250 762-7675        http://www.planix.com/

Attachment: pgp2ABh0xjsvy.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index