Possible Duplicate:
How to 'chmod' on an NTFS ( or FAT32 ) partition?
Can't make a file executable
i m pretty new to linux and gcc. i have a file1.s file which i tried to build using gcc with following command -
gcc -m32 -o file1 file1.s runtime.c
compilation was successful and i got the file1, but on issuing
./file1
does nothing. when i checked the file permissions, i see that for user, only read and write are enabled, executable is set as -.
i tried doing chmod u+x file1
, but that didnt change any permission.
where am i going wrong? how do i execute this file1? it would just print the sum of two numbers.
thanks!
chmod u+x file1
should do the trick. What doesls -l file1
say after you ranchmod u+x file1
?chmod
doesn't work on NTFS, FAT ans similar file systems as they do not support Unix permissions.