[파일] samba 계정 추가 스크립터
#!/bin/sh
if [ $# -ne 2 ]
then
echo “Among password creation, error occurrence !!”
echo “Please Enter HPC_user Password”
exit 1
else
(echo $2; echo $2)|smbpasswd -s -a $1
fi
#!/bin/sh
if [ $# -ne 2 ]
then
echo “Among password creation, error occurrence !!”
echo “Please Enter HPC_user Password”
exit 1
else
(echo $2; echo $2)|smbpasswd -s -a $1
fi