Home » LPI » 117-201 » Which of the following /etc/exports lines would you use?
You want to export a local file system /data, and permit read-write access for all users on hostA. In addition, the root account on hostA should be allowed root level access. All other hosts are to have read-only access. Which of the following /etc/exports lines would you use?
A. /data hostA(rw,no_root_squash) (ro)
B. /data hostA(allow_root) -ro
C. /data -ro,rw=hostA(root)
D. /data hostA=rw,root *=ro
E. /data hostA(rw,all_squash,anonid=0) @all(ro)
Correct Answer: A
Explanation/Reference:
Explanation: The format of the /etc/exports lines is ‘directoryname hostname(options)’. In this case you are exporting the /data directory. HostA has the (rw,no_root_squash) permissions applied and everyone else gets the (ro) permission. The rw permission allows HostA read/write permissions. The no_root_squash option gives the root account on HostA root access to the /data directory. Everyone else gets the ro permission which means read only.
Reference: http://www.comptechdoc.org/os/linux/usersguide/linux_ugnfs.html
Incorrect Answers
B:The option to allow root access is no_root_squash, not allow_root.
C:The syntax in this answer is incorrect.
D:The syntax in this answer is incorrect.
E:The syntax in this answer is incorrect.
Download Printable PDF. VALID exam to help you PASS.
|
|