A system administrator needs to mount a USB drive in Linux and ensure that users other than the owner cannot write to it. What option needs to be added to the mount command to achieve this?
To prevent users other than the owner from writing to the USB drive, the 'ro' (read-only) option can be used. This option mounts the filesystem in a read-only mode, allowing only the owner to write to it, thus addressing the administrator's requirement. Other options such as 'rw' (read-write), 'sync', and 'noexec' would not achieve the desired behavior: 'rw' would allow writing by all users, 'sync' would just affect the synchronization timing but not permissions, and 'noexec' would prevent execution of binaries but not affect write permissions.
Learn More
AI Generated Content may display inaccurate information, always double-check anything important.
What does 'ro' mean in the context of mounting a filesystem?
What would happen if I used the 'rw' option instead of 'ro'?