Permission denied error running scripts in /var/tmp as root user
Issue
- Trying to execute a script on
/var/tmp
as root shows permission denied:
[root@gss-rhel6u2-64 ~]# /mnt/testmount/script.sh hello
-bash: /mnt/testmount/script.sh: Permission denied
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.