Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
AbidBajwa
Highly Voted 2 years, 6 months 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 10 times
...
lgu
Most Recent 2 years, 6 months 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 4 times
safodz
2 years, 4 months ago
what do you means by ldapdir? should be ldapuser40 172.24.40.10:/rhome/ldapuser40
upvoted 4 times
...
wizojlo
1 month, 4 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
1 month, 4 weeks ago
Forgot to add #useradd -M ldapuser40 (after showmount in 3rd line - this will create the user without home folder)
upvoted 1 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 ...