川口です
adduser(8) script でユーザーを追加する際,
gecos field に "@" が入っていると拒絶されるようです.
vipw(8) で書いちゃう分には gecos フィールドに @ が入っていても
全然問題ないんですが,何かまずいんでしょうか?
# やりたいのは mail address を gecos に
# 放り込んでおきたいということです
実際に呼ばれて使われているのは pw(8) でして
こんなエラーを吐きます.
pw: invalid character `@' at position 4 in gecos field
結局
/usr/src/usr.sbin/pw/pw_user.c の 1218 行め辺りの
if (gecos) {
/* See if the name is valid as a gecos (comment) field. */
badchars = ":!@";
showtype = "gecos field";
.snip.
if (reject) {
snprintf(showch, sizeof(showch), (*ch >= ' ' && *ch < 127)
? "`%c'" : "0x%02x", *ch);
errx(EX_DATAERR, "invalid character %s at position %d in %s",
showch, (ch - name), showtype);
}
という感じで gecos で :!@ が不可と陽に書かれています.
: がいけないのは当然として... !,@ って関係あるんですかね?
pw の man にも ":" はダメよ,とは書いてありますが,
!@ については言及はありません.
--
∧∧
Zzz.. (- - )⌒⌒⊇〜 川口 銀河
############## [EMAIL PROTECTED]