Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can someone give me the complete process to change FreeBSD from a 16 char max to 64 char max on unsername length?

Essentially this is to add some support for Virtualmin/Webmin.

Inspired from I tried the following:

Changed in /usr/src/sys/sys/param.h

#define MAXLOGNAME      65              /* max login name length (incl. NUL) */

Changed in /usr/src/include/utmp.h

#define UT_NAMESIZE     64      /* see MAXLOGNAME in <sys/param.h> */


# cd /usr/src
# make buildworld

And now

# adduser

Still reports too long username!?

share|improve this question
Btw. its FreeBSD 8.1 – Phliplip Oct 17 '10 at 10:53
up vote 1 down vote accepted

Install world:

# make installworld
share|improve this answer
Ahh... OK :) thx! – Phliplip Oct 17 '10 at 12:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.