Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TXT file "executable" on NTFS partition #456

Closed
Smile4ever opened this issue Sep 5, 2015 · 4 comments
Closed

TXT file "executable" on NTFS partition #456

Smile4ever opened this issue Sep 5, 2015 · 4 comments

Comments

@Smile4ever
Copy link

@Smile4ever Smile4ever commented Sep 5, 2015

If I double click a TXT file in Caja that is stored on an NTFS partition, this file is seen as "executable" (and a window pops up, asking to do with it, similar to .sh files). However, TXT files can never be executable, they're just plain text. Please fix this.

@infirit
Copy link
Contributor

@infirit infirit commented Sep 5, 2015

However, TXT files can never be executable

What do you think shell (.sh) scripts are? Any file can have the executable bit set with chmod +x. Remove the executable bit and you will not get the option.

@infirit infirit closed this Sep 5, 2015
@Smile4ever
Copy link
Author

@Smile4ever Smile4ever commented Sep 5, 2015

Its set automatically with NTFS partitions. The owner is set to root for all files on the NTFS partition while I created the file as normal user. sudo chmod -x file.txt does not work.

@infirit
Copy link
Contributor

@infirit infirit commented Sep 5, 2015

Its set automatically with NTFS partitions

No it isn't. It is controlled by the umask mount option. Use your favourite search engine on how to control the executable bit on ntfs mounts.

There is an option in caja's preferences to control this behaviour so you may want to look at that.

@Smile4ever
Copy link
Author

@Smile4ever Smile4ever commented Sep 5, 2015

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.