Mint 15: Create non executable file by default

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
David7

Mint 15: Create non executable file by default

Post by David7 »

Every time I want to open executable textfile I have options to run, or display the file, because it's executable. Every new file I create is executable. How to disable this, i.e. make every new file not executable by default? Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29606
Joined: Wed Jul 06, 2011 3:58 am

Re: Mint 15: Create non executable file by default

Post by xenopeek »

Where are you creating these text files, i.e. if you are creating these on a NTFS partition the clue is there already...
Image
David7

Re: Mint 15: Create non executable file by default

Post by David7 »

Yes, I do create them on a NTFS partition. Ok, so to solve this problem I need to figure out mount options. Thanks for advice.
User avatar
xenopeek
Level 25
Level 25
Posts: 29606
Joined: Wed Jul 06, 2011 3:58 am

Re: Mint 15: Create non executable file by default

Post by xenopeek »

Yes, assuming you are using ntfs-3g check its manpage. Specifically you'll want to set fmask and dmask correctly. Though if you remove execute permissions from files, you won't be able to execute any files directly. I have an example of how to set up fmask and dmask with ntfs-3g, though this one does grant execute permissions to all files: http://forums.linuxmint.com/viewtopic.php?t=150757&p=787041#p786767
Image
Locked

Return to “Cinnamon”