drumsticks
December 1st, 2010, 09:16 PM
Files are usually created writeable. But some files, for example: media files (*.mp3, *.ogg), disk images (*.iso) or simply old archived documents, are unlikely to be modified anymore.
Do you remove write permissions on these files to prevent accidental modification, deletion** or otherwise (god forbid) virus infection?
**Yes, I'm aware that file deletion is a directory property, not a file property; at least on *NIX systems, I don't know about Windows.
I've started doing this on some aspects of my files, for instance, my backup partitions (on different physical disks) are always mounted read-only. The backup script remounts it read-write, does its thing, then remounts it read-only again. My archived documents also have their write and delete permissions revoked.
Care to share your experiences?
Do you remove write permissions on these files to prevent accidental modification, deletion** or otherwise (god forbid) virus infection?
**Yes, I'm aware that file deletion is a directory property, not a file property; at least on *NIX systems, I don't know about Windows.
I've started doing this on some aspects of my files, for instance, my backup partitions (on different physical disks) are always mounted read-only. The backup script remounts it read-write, does its thing, then remounts it read-only again. My archived documents also have their write and delete permissions revoked.
Care to share your experiences?