exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 12 discussion

Actual exam question from RedHat's EX200
Question #: 12
Topic #: 1
[All EX200 Questions]

SIMULATION -
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
AbidBajwa
Highly Voted 3 years, 1 month ago
yum install autofs showmount -e 172.24.40.10 ##Create user without a home directory useradd -M ldapuser40 ##Create file vi /etc/auto.master.d/autohome.autofs ##add this line /- /etc/auto.home ##create this file vi /etc/auto.home ##Add this line and save file /home/ldapuser40 -rw,sync 172.24.40.10:/rhome/ldapuser40 systemctl enable --now autofs.service
upvoted 13 times
...
lgu
Highly Voted 3 years, 1 month ago
Something like : dnf install autofs -y systemctl enable autofs vi /etc/auto.master /rhome/ldapuser40 /etc/auto.examtopic vi /etc/auto.examtopic ldapdir 172.24.40.10:/rhome/ldapuser40 systemctl start autofs mount
upvoted 5 times
safodz
3 years ago
what do you means by ldapdir? should be ldapuser40 172.24.40.10:/rhome/ldapuser40
upvoted 4 times
...
wizojlo
9 months, 2 weeks ago
I understood the task differently, like we need to mount server path to ldapuser40 folder under /home. Might be wrong, correct me if so. #dnf install -y autofs (installs required package) #systemctl enable --now autofs (enable service at next boot and start it immediately) #showmount -e 172.24.40.10 (to check existing NFS export on the server) #vim /etc/auto.master (edit master file) #/home /etc/test.mapfile (add this line, configures /home as main mount point where everything defined in test.mapfile will be mounted under) #vim /etc/test.mapfile (creates and starts editing the mapfile) #ldapuser40 172.24.40.10:/rhome/ldapuser40 (add this line, first part is the folder which will be created under /home defined previously in master, and contents will be retrieved from server path on the right). #systemctl reload autofs (reloads all autofs configs)
upvoted 1 times
wizojlo
9 months, 2 weeks ago
Forgot to add #useradd -M ldapuser40 (after showmount in 3rd line - this will create the user without home folder)
upvoted 2 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...