新增帳號 adduser -silent

回覆文章
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

新增帳號 adduser -silent

文章 schumi »

from http://netlab.cse.yzu.edu.tw/~statue/fr ... duser.html

# adduser
如果你不想看到所有的警告和問題,你可以使用 ``-silent'' 選項。

Check /etc/shells
Check /etc/master.passwd
Check /etc/group
Enter your default shell: bash csh date no sh [sh]: ...按 ENTER...
Your default shell is: sh -> /bin/sh
Enter your default HOME partition: [/home]: ...按 ENTER...
Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: ...按 ENTER...
Send message from file: /etc/adduser.message no [no]: ...按 ENTER...
Do not send message
Use passwords (y/n) [y]: ...按 ENTER...

Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.
Enter username [a-z0-9_-]: elvis
Enter full name []: Elvis Graton
Enter shell csh date no sh [sh]: ...按 ENTER...
Enter home directory (full path) [/home/elvis]: ...按 ENTER...
Uid [1004]: ...按 ENTER...
Enter login class: default []: ...按 ENTER...
Login group elvis [elvis]: ...按 ENTER...
Login group is ``elvis''. Invite elvis into other groups: guest no
[no]: wheel ...邀請他加入 wheel 群組,如可他是您的 user...
Enter password []: ...不回應,混合大寫字母與數字...
Enter password again []: ...不回應,再鍵入一次...
Name: elvis
Password: ****
Fullname: elvis
Uid: 1004
Gid: 1004 (elvis)
Class:
Groups: elvis
HOME: /home/elvis
Shell: /bin/sh
OK? (y/n) [y]: ...按 ENTER...
Added user ``elvis''
Copy files from /usr/share/skel to /home/elvis
Add another user? (y/n) [y]: n
Goodbye!
# _
回覆文章

回到「FreeBSD」