But I can run any other programs or scripts e.g my own HelloWorld from /root partition.
How can I check the permission of the /root/.setup* ?
This directory is deleted by the setup.sh. Here is a part of setup.sh.
# Try to run the binary
# The executable is here but we can't execute it from CD
setup="$HOME/.setup$$"
cp "$setup_bin" "$setup"
chmod 700 "$setup"
if [ "$fatal" != "" ]; then
"$setup" $*
failed=$?
else
"$setup" $* 2>/dev/null
failed=$?
fi
----------------------
rm -f "$setup"
----------------------
return $failed