1.添加用户
如下命令是用root执行的
adduser dong
会直接在/home 目录创建 dong 目录
2.将用户划分到某个组
gpasswd -a user group
3.ifconfig 查看可用的网卡接口
root@kali:/etc/network# ifconfig -a eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500 ether 00:0c:29:af:84:83 txqueuelen 1000 (Ethernet) RX packets 3696 bytes 5108125 (4.8 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1439 bytes 99503 (97.1 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 372 bytes 23924 (23.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 372 bytes 23924 (23.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
4.启动网卡eth0
root@kali:/etc/network# ifconfig eth0 up