※ 來源:‧良美家族總寨 hiperfect.com‧[FROM: u1-180.u203-204.giga]
> -------------------------------------------------------------------------- <
發信人: [email protected] (交通大學新聞部), 看板: FreeBSD
標 題: Re: 請問뜠adduser 問題
發信站: Catpit_BBS (Sat Aug 17 20:53:57 2002)
轉信站: Ptt!news.ntu!ctu-gate!ctu-peer!news.nctu!news.cis.nctu!Catpit
※ 引述《[email protected] (工友)》之銘言:
> # adduser
> Use option ``-silent'' if you don't want to see all warnings and questions.
> Check /etc/shells
> Check /etc/master.passwd
> Check /etc/group
> Usernames must match regular expression: [lan0609]:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
你這樣填的話, 以後只有一個 lan0609 帳號可以建~~
請 edit /etc/adduser.conf
# regular expression usernames are checked against (see perlre(1))
# usernameregexp = 'regexp'
usernameregexp = '^[a-z0-9_][a-z0-9_-]*$'
將上面這個部份修正過來。
再跑 adduser 即可
# adduser
Use option ``-silent'' if you don't want to see all warnings and questions.
Check /etc/shells
Check /etc/master.passwd
Check /etc/group
Usernames must match regular expression: [lan0609]:
Enter your default shell: bash csh date no sh tcsh [bash]:
Your default shell is: bash -> /usr/local/bin/bash
Enter your default HOME partition: [/home/lan0609]:
Copy dotfiles from: /usr/share/skel no [/usr/share/skel]:
Send message from file: /etc/adduser.message no
[/etc/adduser.message]:
Use passwords (y/n) [y]:
Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.
Enter username [lan0609]: lan0609
Please enter a username
Enter username [lan0609]:
每次到這裡一直出現 Enter username 要如何解決?
--