#!/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 < $1
阅读(2070) | 评论(0) | 转发(0) |