Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They could just as well automatically chmod the txt/docx/html file to remove the executable bitset. Why would anyone want to have an executable txt file? If one does want it, it's pretty safe to let them reset the bit manually afterward.


> Why would anyone want to have an executable txt file?

A shell script.


I meant to exclude scripts when I said txt/docx/html and likes. I understand I wasn't clear enough, that is my fault.


Named .txt?


Surely nobody with malicious intentions would ever try to trick you.


They would do a pretty bad job of harming me by addng and extension that makes me view the source of a malware script in TextEdit instead of executing it.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: