then
echo"thedenyuser.shhasbeenexecutedandhas
exitnotbeenundo!!!”
fi
echo1>/export/bin/.denydo
fori
doiffcat/export/bin/usemames"
讧[¥i==”¥2”]
then
echo"Only¥i
elsecanbelogintothesehosts!”
DENYUSERS=”¥DENYUSERS¥,
fi
done
echo”¥DENYUSERSwillbedeniedtologinthesehosts[”
rnl—f/export/bin/passwd.deny
rcpe0101:/etc/passwd/cxport/bin/passwd.bak
IFS=¥’、nt
for
do
bool=0
IFS=¥”
foriin¥DENYUSERS
do
ifecho¥jIgrep¥i>/dev/null2>&l
thenJirfcat/export/bin/passwd.bak"
echo”群¥j”≥>/export/bin/paswd.deny
echo¥ihasbeendenied
bool=l
fi
done
讧[¥bool==叼”]
then
echo¥j>>/export/bin/passwd.deny
fi
done
I碍=¥、、n、f
foriirfcat/export/bin/hosts¥r
do
echo¥i
rsh¥i”cp/ctc/passwd/etc/passwd.bak.deny;cp/export/bin/passwd.deny/etc/passwd”
done..79..