Ohk so here in the shell script i have to check the permissions separately like I have done below.
if [ ! -r ${source} ]
then
echo "Read access permission denied on Source Directory"
exit 1
fi
if [ ! -w ${source} ]
then
echo "Write access permission denied on Source Directory"
exit 1
fi
if [ ! -x ${source} ]
then
echo "Execute access permission denied on Source Directory"
exit 1
fi
kindly let me know if this is the ideal way to check rwx rights or is there any better way to do this...!!