File losing "executable" attribute after transfer - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4) +---- Forum: Linux, FreeBSD, and Unix (https://www.supportforums.net/forumdisplay.php?fid=17) +---- Thread: File losing "executable" attribute after transfer (/showthread.php?tid=4512) Pages:
1
2
|
File losing "executable" attribute after transfer - J4P4NM4N - 01-25-2010 I have a home-made webserver on my Ubuntu box. If I include an executable ("HelloWorld") in the folder with index.html, then use: Code: <a href="HelloWorld">Hello World program</a> When you try to run it, it says "Access Denied." I have to Code: chmod a+x HelloWorld Does anyone know why this happens? Is there a way to fix this? RE: File losing "executable" attribute after transfer - DAMINK™ - 01-25-2010 So the HelloWorld has no file extension? RE: File losing "executable" attribute after transfer - J4P4NM4N - 01-25-2010 It actually has a ".exe" extension, but it's not necessary in *nix to have one. RE: File losing "executable" attribute after transfer - Jordan L. - 01-25-2010 What the Hello World script coded in? And why is there a .exe extensions if you're on Nix? RE: File losing "executable" attribute after transfer - DAMINK™ - 01-25-2010 Yes i realise that. Still i cant quite understand the point here? Excuse my ignorance. You run nix yet you want to run an .exe? I assume its for infecting someone or something similar. Why not try linking to the file with the extension added? <a href="HelloWorld.exe">Hello World program</a> RE: File losing "executable" attribute after transfer - J4P4NM4N - 01-25-2010 Did anyone read my post?? @DAMINK: That's exactly the HTML I used. @trilobyte: It's C++. Compiled, of course. Back @ DAMINK: Here is the issue: I can run the executable fine. I post it on my webserver. I download it from myself [or onto any other computer, for that matter] I can no longer run the downloaded file. It lost its "x" attributes. ??? Profit! [the "???" must mean: Your Solution] ^_^ RE: File losing "executable" attribute after transfer - DAMINK™ - 01-25-2010 Gunna test this now on my Home server and see whats the go here. This should not happen. RE: File losing "executable" attribute after transfer - J4P4NM4N - 01-25-2010 I appreciate it, dude. RE: File losing "executable" attribute after transfer - DAMINK™ - 01-25-2010 What do you open .exe files with default? Wine i assume? I have a seperate issue stopping me from testing this properly on my server. But here it is if you want to test see if the same problem? Code: http://www.damink.com.au At the bottom of page. Named Hello World Program. Test that i guess and see if its your system or your server??? RE: File losing "executable" attribute after transfer - J4P4NM4N - 01-26-2010 I opened it up in Wine OK, I guess . . . well, some "Anry color picker" program came up. But I was sending a file executable in Linux, and running it in Linux. I set "chmod 777" and/or "chmod a+x" and all that before sending, but [just like when I downloaded your exe] the "x" attributes weren't there. EDIT: Sorry if I'm confusing; The file was created in Linux and compiled in Linux. It runs fine on a Linux system by running: Code: ./helloworld Code: ./helloworld.exe Code: chmod a+x I wonder if it has to do with how I'm sending it over TCP??? I can post my 200 lines of webserver code. It is in C. If you don't know, maybe g4143 would. He seems like he knows his stuff. A regular C-wizard. EDIT#2: I just realized that you probably don't know who g4143 is. I'm getting my HF and SF mixed up. |