#!/bin/sh for i in $(cat userlist.txt) do useradd $i echo $i | passwd --stdin $i chage -d 0 $i echo "$i ALL=(ALL) ALL" >> /etc/sudoers done
脚本实现自动批量创建用户并且设置密码
猜你喜欢
转载自blog.csdn.net/wangshui898/article/details/80236354
今日推荐
周排行