Step 1. mkdir bin
Step 2.cd/root/bin
Step3.vim useradd.sh
#:/bin/bash
groupadd workstation
for username in workstation1 workstation2 workstation3 workstation4 workstation5
do
useradd -G workstation $username
echo "password" | passwd --stdin $username
done
Step4.sh useradd.sh
Step5.id workstation1
沒有留言:
發佈留言
歡迎留下寶貴意見