来源:
ChinaUnix博客 作者: 发布时间:2007-01-01 11:52:00

#!/bin/bash
#脚本用法
if [$# == 1]
then
echo "make sure $1 format is right"
read -n 1
else
echo "usage: ./thisshell namepasswd.lst "
exit
fi
# 脚本必须由root用户执行
currentuser=`id -u`
if [$currentuser==1]
then
echo "脚本必须由root用户执行"
exit
fi
chpasswd
|
还没有关于此文章的相关评论!