-1

I have deployed a Django application on AWS EC2 and application is targeted for Linux desktop users. There are some files which get downloaded in browser when clicking some links and are meant to be run by clicking on the files.

I am setting the permission of the file to executable before deploying but the file permission gets changed after downloading. I am using the HTTPS protocol. Is there any protocol or way to keep the permission of files after downloading so users don't need to do chmod in terminal?

The executable files are generated by using tool pyinstaller.

bihari_gamer
  • 422
  • 5
  • 15
  • OS X will likely set the [quarantine bit](https://superuser.com/q/526920/173513), too. It still won't run even with `chmod +x`. – jww Jun 04 '19 at 10:52

1 Answers1

0

No way, that would be far too dangerous.

That's why apps are installed via package installers, that have a script that sets the permissions correctly and gives the OS a chance to ask users if they are sure they know what they are doing.

dirkgroten
  • 20,112
  • 2
  • 29
  • 42