Welcome to the Linux Foundation Forum!

installing ovftool from vmware

# ./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle
Extracting VMware Installer...done.
./VMware-ovftool-3.5.0-1274719-lin.x86_64.bundle: line 302: /tmp/vmis.F8TC6L/install/vmware-installer/vmware-installer: Permission denied

I am root using 'sudo su' on rhel 6

Comments

  • Is your /tmp or /var/tmp partition mounted noexec ?
    I was getting the same error before I remounted the partition

    execute mount command
    # mount
    ....
    /dev/mapper/hostvg-tmp on /tmp type ext3 (rw,noexec,nosuid,nodev)
    ....
    

    if you see noexec attriibute next to your tmp partition you need to remount it executable
     mount -o remount,exec /tmp
    
    This may not always work if you have something running on your system that keeps open files on the /tmp partition ( eg MySQL server often does that ), you can try to mount it exec on boot
    # vi /etc/fstab
    
    remove noexec attibute in the line
    /dev/mapper/hostvg-tmp /tmp            ext3    defaults,nodev,nosuid,noexec 
    

    and reboot your system

    Note that mounting /tmp noexec is actually security related
  • ladowny wrote:
    Is your /tmp or /var/tmp partition mounted noexec ?
    I was getting the same error before I remounted the partition

    execute mount command
    # mount
    ....
    /dev/mapper/hostvg-tmp on /tmp type ext3 (rw,noexec,nosuid,nodev)
    ....
    

    if you see noexec attriibute next to your tmp partition you need to remount it executable
     mount -o remount,exec /tmp
    
    This may not always work if you have something running on your system that keeps open files on the /tmp partition ( eg MySQL server often does that ), you can try to mount it exec on boot
    # vi /etc/fstab
    
    remove noexec attibute in the line
    /dev/mapper/hostvg-tmp /tmp            ext3    defaults,nodev,nosuid,noexec 
    

    and reboot your system

    Note that mounting /tmp noexec is actually security related

    This is an interesting case. Do you think that mounting a folder with noexec prevents files from executing if they must be ran?

Categories

Upcoming Training