21.40. pw 開帳號碰到'@'問題?

Contributed by JoeHorn

Last Update: 2004年11月15日 周一 08時43分30秒 CST

Q: pw 在開帳號時,只要註解有 '@' 即有下面訊息:

# pw useradd -n test -c "一" -d /home/test -g nogroup -m -s /bin/tcsh -w yes
pw: invalid character `@' at position 1 in gecos field

A: 把 /usr/src/usr.sbin/pw/pw_user.cbadchars = ":!@"; 改成 badchars = ":!";,重新 compile 就好了, 不過這樣在使用 e-mail 上應該會有問題。