Ubantu激活root账号和修改网卡名
ubantu安装好系统之后root不能直接登录,必选经过普通用户切换
网卡名默认是ens33,修改成eth0
[root@ubuntu1804 ~]#ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.151 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::20c:29ff:fed6:daed prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:d6:da:ed txqueuelen 1000 (Ethernet)
RX packets 212248 bytes 307261580 (307.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 39567 bytes 2400016 (2.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@ubuntu1804 ~]#vim /home/liudh/enable_root.sh
#!/bin/bash
#
#********************************************************************