Oracle Cloud 开启root 登录 1.利用 cloud-init脚本来开启root账号密码登录 脚本如下: #!/bin/bash echo root:329105sz |sudo chpasswd root sudo sed -i 's/^#\?PermitR