Issue
I put a Linux executable file on my website and I would like that, when someone downloads it on a Linux machine, it is still executable.
However, when the file is downloaded it loses the x flag. Is there a solution? Despite I had a look in many places, I didn't manage to find a solution for this issue.
It is particularly important for me because I would like the whole process to be extremely easy for everyone: my idea is allowing the users to right click on the file and choose "Run in terminal", without clicking before on "Permissions" and make the file executable and without chmod +x filename
or sh filename
Solution
You can maybe group this file (and others) in a tar
file. While donwloading it and un-taring it, permissions will be kept.
Answered By - fedorqui Answer Checked By - Clifford M. (WPSolving Volunteer)