vim /root/bin/per.sh
!/bin/bash
if [ ! -r /tmp/file1 -a ! -w /tmp/file1 ];then
echo "当前用户对此文件无读写权限!"
else
echo "当前用户对此文件可读可写!"
fi
vim /root/bin/per.sh
if [ ! -r /tmp/file1 -a ! -w /tmp/file1 ];then
echo "当前用户对此文件无读写权限!"
else
echo "当前用户对此文件可读可写!"
fi