read-only
A setting that lets data be read but not changed, such as a file whose write permission has been removed.
In more detail
Read-only protects against accidents, but it is not immutability. On Unix, deleting a file needs write permission on the folder, not on the file, and the file's owner can simply change the mode back. Anything the same credentials can undo gives no protection from an attacker who holds those credentials.
Examples
os.chmod(path, 0o444) # read-only for everyoneos.remove(path) # still works: needs write access to the folder onlyRelated terms
- immutable — Something that cannot be changed after it is created; to change it you make a new one.
- file permissions — Rules on each file saying which user and group own it and who may read, write or run it.
- chmod — A command that changes a file's permission bits, using either octal digits or symbolic changes.
- compliance mode — An S3 Object Lock setting where nobody, not even the account's root user, can delete a locked object or shorten its retention before it expires.
Taught in
- Backup Architectures: 3-2-1, Immutability & Air-Gaps — Cybersecurity Fundamentals, GRC & Cryptography