#!/bin/bash
# Create mail account script
aaa=`echo $UID`
if [ "$aaa" = 0 ];then
echo "Enter Mail username:"
read a
useradd $a
echo "Enter "$a"'s password:"
read b
echo "$b" | passwd --stdin $a > /dev/null 2>&1
echo "For 10s, The $a user will create completly"
else
echo "Please change into root user to execute the script"
fi
阅读(2005) | 评论(0) | 转发(0) |