echo "$cnt"
if [ $cnt -eq 0 ]
then
/usr/sbin/useradd -d "/u1/usr/$1" -m -g tiptop -s /bin/ksh "$1"
echo "$1" >> /u1/usr/profile/vip.txt
passwd "$1" << END_PASS
new_default_password
new_default_password
END_PASS
chmod 777 /u1/usr/$1
cd /u1/usr/
cd "$1"
ln -s /u1/usr/profile/profile.tiptop .profile
cd /u1/usr/profile
pwd
fi
沒有留言:
張貼留言