Home » LPI » 117-201 » Which of the following is a valid /etc/fstab entry which implements AT LEAST one of these features?
The ‘user’ option in /etc/fstab allows a normal user to mount/unmount filesystems. When used on removable devices, this can allow unaudited applications to be made available on your system. For security reasons, you may wish to disable:
The suid bit.
Device nodes.
Running of executables.
Writing to the mounted filesystem.
Which of the following is a valid /etc/fstab entry which implements AT LEAST one of these features?
A. /dev/fd0 /mnt ext2 ro,user,noauto,noexec,nodev 0 0
B. /dev/cdrom /mnt iso9660 rw,user,nobin,nosuid,nodev 00
C. /dev/cdrom /mnt iso9660 ro|user|!dev|!suid|!bin 0 0
D. /dev/fd0 /mnt vfat rw+user+noexec+nodev+nosuid 0 0
E. /dev/cdrom /mnt auto ro|user|!auto
Correct Answer: A
Explanation/Reference:
Explanation: The ‘ro’ option means read only. This means that the drive can only be mounted in read only mode and therefore, cannot be written to.
The noexec option prevents the running of executable files.
Reference: http://www.humbug.org.au/talks/fstab/fstab_options.html
Incorrect Answers
B:The rw option will allow the drive to be mounted in read/write mode. The question states that writing to the filesystem should be disabled.
C:The options must be separated by commas. Therefore the syntax in this answer is incorrect.
D:The options must be separated by commas. Therefore the syntax in this answer is incorrect.
E:The options must be separated by commas. Therefore the syntax in this answer is incorrect.
Download Printable PDF. VALID exam to help you PASS.
|
|