Allow a regular user to mount a removable filesystem defined in fstab.
The permitted user should also be able to unmount it using the standard option.
Which value is appropriate?
The fstab user option permits a regular user to mount the entry, and the mounting user can normally unmount it. Review implied security options.
Detailed explanation
nouserIncorrect. nouser explicitly prevents regular users from mounting.
Incorrect. nouser explicitly prevents regular users from mounting.
owner-onlyIncorrect. owner-only is not the standard fstab option for this behavior.
Incorrect. owner-only is not the standard fstab option for this behavior.
userCorrect. user allows a regular user to mount the entry.
Correct. user allows a regular user to mount the entry.
suidIncorrect. suid controls set-user-ID behavior, not who may mount.
Incorrect. suid controls set-user-ID behavior, not who may mount.
Try it yourself
An example you can run in a temporary verification environment.
man 8 mountExpected result
user、users、owner等の一般利用者向けオプション説明Key points
- user permits regular users
- The mounting user can unmount
- Check implied options
Notes
- Environment: util-linux mount 2.39以降
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.