root 是 FreeBSD 的管理者,隸屬於 wheel 群組,
為了安全性的考量,FreeBSD 預設 root 只能從主控台登入,
不能由遠端登入系統;但是,當我們架設好 FreeBSD 後,
會需要從網路遠端登入系統來處理事情,
因此,我們可以新增一個 wheel 群組的使用者,
當您使用此帳號從網路遠端登入系統後,
再執行 su 指令然後輸入 root 的密碼,
就可變身具有 root 的權力;
接著將介紹如何使用 adduser 指令新增一個 wheel 群組的使用者。
以下文章
請注意紅色的 wheel
# 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
Enter your default shell: csh date no sh tcsh [sh]: 說明:欲使用哪個shell
Your default shell is: sh -> /bin/sh
Enter your default HOME partition: [/home]:
Copy dotfiles from: /usr/share/skel no [/usr/share/skel]:
Send message from file: /etc/adduser.message no [adduser.message]:no
Do not send 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 inp.
Enter username [a-z0-9_-]: admin
Enter full name []: admin
Enter shell csh date no sh tcsh [sh]:
Enter home directory (full path) [/home/admin]:
Uid [1001]:
Enter login class: default []:
Login group admin [admin]:
Login group is ``admin''. Invite admin into other groups: guest no
[no]: wheel
Enter password []:
Enter password again []:
Name: admin
Password: ****
Fullname: admin
Uid: 1001
Gid: 1001 (admin)
Class:
Groups: admin wheel
HOME: /home/admin
Shell: /bin/sh
OK? (y/n) [y]: y
Add another user? (y/n) [y]: n
Goodbye!
#