看板FreeBSD
标 题Re: 让 adduser username 超过 16 个字元呢???
发信站未来最旧小栈 (Mon Nov 7 23:50:25 2005)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.chu!Leo.mi.chu!zoonews.ee.nt
※ 引述《"cindy" <[email protected]>, 看板: FreeBSD》之铭言:
: 如何更改设定, 才能让 adduser username 超过 16 个字元呢?
: 因为如果直接 #vipw 去更改帐号 , 更改 /etc/group 的帐号, 以及 /home/帐号.
: 但使用 passwd 帐号 , 就没法更改密码.
: thank you.
man adduser
username
Login name. The user name is restricted to whatever pw(8) will
accept. Generally this means it may contain only lowercase char-
acters or digits.
Maximum length is 16 characters. The reasons
for this limit are historical. Given that people have tradition-
ally wanted to break this limit for aesthetic reasons, it has
never been of great importance to break such a basic fundamental
parameter in UNIX.
You can change UT_NAMESIZE in <utmp.h> and
recompile the world; people have done this and it works, but you
will have problems with any precompiled programs, or source that
assumes the 8-character name limit and NIS. The NIS protocol
mandates an 8-character username. If you need a longer login
name for e-mail addresses, you can define an alias in
/etc/mail/aliases.
--
◢█◣▏◤█◣ ◆未来最旧小栈 Oldest Future Object
█●▇█▁˙█ ◆通讯频率 OfO.twbbs.org
◥█◢▉◥█◤ ◆来源座标
61.64.64.181