nerdexam
CompTIA

LX0-103 · Question #191

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?

The correct answer is C. user. The 'user' option in /etc/fstab grants any regular user the ability to mount the filesystem, and the mounting user may also unmount it. This is the standard mechanism for removable media access.

Devices, Linux Filesystems, Filesystem Hierarchy Standard

Question

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in /etc/fstab?

Options

  • Anouidchk
  • Balluser
  • Cuser
  • Dauto

How the community answered

(41 responses)
  • A
    2% (1)
  • B
    5% (2)
  • C
    90% (37)
  • D
    2% (1)

Why each option

The 'user' option in /etc/fstab grants any regular user the ability to mount the filesystem, and the mounting user may also unmount it. This is the standard mechanism for removable media access.

Anouidchk

nouidchk is not a recognized fstab mount option and has no defined behavior for controlling user mount permissions.

Balluser

alluser (as written) is not a valid fstab option; the closest valid option is 'users' (plural), which allows any user to both mount and unmount the device regardless of who originally mounted it.

CuserCorrect

Adding the 'user' option to a filesystem entry in /etc/fstab permits any unprivileged user to execute mount and umount commands on that filesystem. This is the accepted method for allowing access to removable devices like CD-ROMs and floppy drives without requiring root privileges for every operation.

Dauto

The 'auto' option causes the filesystem to be mounted automatically at boot time and has no effect on whether regular users can mount or unmount it.

Concept tested: fstab user mount permission options

Source: https://man7.org/linux/man-pages/man5/fstab.5.html

Topics

#/etc/fstab#mount options#user mount

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice