Ventoy Forums
Is there a way to avoid having execute permissions added automatically to files? - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: Is there a way to avoid having execute permissions added automatically to files? (/showthread.php?tid=1971)



Is there a way to avoid having execute permissions added automatically to files? - lostipod - 02-15-2022

Hello there. I noticed when I put files on a Ventoy drive that execution permissions get added to Owner, Group and Other (chmod a+x). I tried using the -r option when running Ventoy2Disk.sh and then created a separate partition with the remaining space on the drive, but execute permissions were still added to files when copied there. Is there a way to add regular files (non .iso / .img) to a Ventoy drive without having execution permissions added automatically?


RE: Is there a way to avoid having execute permissions added automatically to files? - longpanda - 02-15-2022

I don't think it's a Ventoy issue. You can make a test:
1. use dd or parted or gparted to fully clear the USB (remove Ventoy completely)
2. Create a partition in the USB as you did with the Ventoy reserved space
3. copy files as you did
To check that whether this time the files have execute permissions or not.


RE: Is there a way to avoid having execute permissions added automatically to files? - lostipod - 02-17-2022

You are correct sir! I thought it was Ventoy but it's any exFAT USB device on Linux it would seem.


Quote:FAT / FAT32 formatted drives don't support file permissions. The permissions for everything are determined by how the drive is mounted.


Sorry for the confusion and thank for the response. And thank you very, very much for the amazing Ventoy!  Big Grin