#!/bin/bash # ------------------ 添加sudo账号 --------------- echo " |--> 添加sudo账号" adduser admin pwd="123456" echo "admin:${pwd}" | chpasswd # 设置sudo权限 usermod -a -G wheel admin