Description:
After learning more about shell scripts and by extension the ability to automate certain processes through simply running a file, I wanted to use this with USB drives I've previously used on Windows to split my workflow across different tasks (one USB drive for music, one for art, etc.). However, when I create a script and give it permission in Properties to run as a script, then drag it into the USB drive, those permissions immediately go away and are unable to be changed; trying to tick the permission box within the USB drive has it be auto-unticked immediately. I understand that this is a safety measure to prevent malicious scripts from being written onto drives, but purely for the sake of my own personal use this is really disappointing; How do you resolve this and let SH-scripts run from within a USB?
Steps to Reproduce:
- Create SH-script of any behavior in text editor
- Go into Properties -> Permissions -> ☑️ Allow executing file as program
- Move file to mounted USB Drive
- Double-click the moved file
Expected Behavior:
The option to run the file as a script rather than opening it as a text document appears; if chosen, the script is executed
Actual Behavior:
No prompt appears, and the file simply opens in one's text editor
Additional Information:
USB Drives are 8GB, FAT32
None of the scripting is intended to run automatically upon inserting the drive and is all planned to be manually executed through running the files