Keressük meg az immutable állományokat is. Itt egy script, csináld ezzel:
#!/bin/bash
BINPATHS="/usr/sbin /usr/bin /usr/local/bin /usr/local/sbin /bin /sbin /sw/bin /usr/local/libexec /usr/libexec"
IMMUTABLE_FLAG="5"
DIRTY=0
echo "Checking file attributes..."
for I in ${BINPATHS}; do
DISP="While checking $I file attributes:"
if [ -d ${I} ]
then
for J in `ls ${I}`; do
LSAT=`lsattr ${I}/${J} 2>/dev/null | cut -c ${IMMUTABLE_FLAG}`
if [ "${LSAT}" = "i" ]; then
DISP_FOUND="Found 'immutable' binary (${I}/${J})"
WHERETOFIX="${I}/${J}"
DIRTY=1
fi
done
fi
if [ $DIRTY -eq 1 ]
then
echo "${DISP}"
echo -n "${DISP_FOUND}"
DIRTY=0
chattr -i ${WHERETOFIX}
if [ "$?" = "0" ]
then
echo " FIXED!"
else
echo " FIX FAILED..."
fi
fi
done
echo "Finished..."