#!/bin/bash
if [ ! "$1" ]
then
echo "Usage:/root/batchusers userfile"
exit 1
fi
if [ ! -e "$1" ]
then
echo "Input file not found"
exit 1
fi
for name in `cat $1`
do
useradd $name -s '/bin/false'
done
RHCE 创建用户
最新推荐文章于 2024-08-15 20:29:14 发布