LFCS · Question #850
To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which option need to be added to the corresponding line in /etc/fstab?
The correct answer is C. user. The user option in /etc/fstab permits any regular user to mount and unmount the specified filesystem, typically used for removable media like CD-ROMs or floppy drives.
Question
Options
- Anouidchk
- Balluser
- Cuser
- Dauto
How the community answered
(44 responses)- A5% (2)
- B2% (1)
- C86% (38)
- D7% (3)
Why each option
The `user` option in `/etc/fstab` permits any regular user to mount and unmount the specified filesystem, typically used for removable media like CD-ROMs or floppy drives.
`nouidchk` is an obscure option related to NFS mounts and UIDs, not for general user mounting permissions.
`alluser` is not a standard `fstab` mount option.
C is correct because the `user` option, when added to an `/etc/fstab` entry, allows any regular user (not just root) to mount and unmount the corresponding filesystem. This is commonly used for removable media devices like CD-ROMs or USB drives, simplifying their management for non-administrative users.
`auto` causes the filesystem to be mounted automatically at boot time or when `mount -a` is run, but does not grant regular users mount/unmount privileges.
Concept tested: `fstab` mount options for user privileges
Source: https://man7.org/linux/man-pages/man8/mount.8.html
Topics
Community Discussion
No community discussion yet for this question.