Permission denied for .bin file

Hey guys,

I downloaded a .bin file yesterday and I ran into a very weird problem. I downloaded the .bin file and issued the chmod command (chmod +x Savage2Install-1.5.0-i686.bin) to give the file executable permissions, and even changed the permissions to 777 (under both my username and as a root user). I check the permissions, and the permissions for the file are now -rwxrwxr-x. Which means I should be able to execute the file, but when I try (with the command ./Savage2Install-1.5.0-i686.bin), both as a normal user and as a root user, I get the following message:

bash: ./Savage2Install-1.5.0-i686.bin: Permission denied

Am I doing something wrong?

Thanks for your help! :slight_smile:

Hi
Just try with the sh command;


sh Savage2Install-1.5.0-i686.bin


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 2 days 17:00, 2 users, load average: 0.12, 0.14, 0.16
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14

I got the file installed because I moved it to a different folder, but I think the real problem is that the partition the directory is in (which is not the normal /home partition for Linux) is not allowing me to change the permissions of the files and directories on it. I’m not sure how to change this, but I have seen this happen before. Does anyone know how to change the partition setup to allow me to change my file permissions?

(Thanks Malcolm :slight_smile: )

(Sorry for the double post)

I forgot the mention the drive with these files on it is a NTFS drive.

Hi, to get permissions for an NTFS drive for all users, edit fstab and change your mount point line for that drive to:

/dev/your_drive /your_mount_point ntfs defaults 0 0

If you want more complicated permissions, you’d have to change defaults to what you want, like uid=1000 and stuff. After rebooting the new permissions should be in effect

Hope that helps,
Jonathan