This is probably a simple answer.
I have 2 ESX servers and I'm trying to run a pl file to install the latest 3.0.1 patches. I did a mkdir /var/updates and used WinSCP to copy the tar files. I created a ESXUpdate.pl file based off of some instructions from another forum post. The problem I'm having is when I type ./ESXPatches.pl I'm getting "-bash: ./ESXPatches.pl: Permission denied"
I've tried this through Putty directly on the console. I've seen this happen on another pl file to open ports on the firewall. What am I doing wrong?
Do an ls -la and check to see if there is an x like below
-rwxrr the first grouping is for the user i.e. -\{rwx} = Read Write and Execute for the user that owns the file. The second grouping is "Group" and the final grouping is world. A "-" means that that grouping doesn't have that permssion. If it doesn't have the "x" do a chmod u+x to give just the user execute permissions.
WHich account are you trying to run this from? Root? If it is root how did you login in to be root?
Login as root... su - to root or use sudo
Did you check and make sure execute permission were present on that file?
I can't believe I forgot to mention I'm logging in as root.
I have no idea if it has execute permissions. How do I check, how do I fix it, and what should I do in the future to make sure this doesn't happen?
The simplest is to connect with WinSCP and check the properties of the file
Do an ls -la and check to see if there is an x like below
-rwxrr the first grouping is for the user i.e. -\{rwx} = Read Write and Execute for the user that owns the file. The second grouping is "Group" and the final grouping is world. A "-" means that that grouping doesn't have that permssion. If it doesn't have the "x" do a chmod u+x to give just the user execute permissions.