» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 3 » Question 5/20
5.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?

/data hostA(rw,no_root_squash) (ro)
/data hostA(allow_root) -ro
/data -ro,rw=hostA(root)
/data hostA=rw,root *=ro
/data hostA(rw,all_squash,anonid=0) @all(ro)

Explanation: The format of the /etc/exports lines is 'directory name 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.

« Question 4 Question 6 »