A method of restricting file access is disclosed wherein a set of file
write access commands are determined from data stored within a storage
medium. The set of file write access commands are for the entire storage
medium. Any matching file write access command provided to the file
system for that storage medium results in an error message. Other file
write access commands are, however, passed onto a device driver for the
storage medium and are implemented. In this way commands such as file
delete and file overwrite can be disabled for an entire storage medium.