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 105 discussion

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

SIMULATION -
Configure autofs to automount the home directories of LDAP users as follows: host.domain11.example.com NFS-exports /home to your system.
This filesystem contains a pre-configured home directory for the user ldapuser11 ldapuser11's home directory is host.domain11.example.com /rhome/ldapuser11 ldapuser11's home directory should be automounted locally beneath /rhome as /rhome/ldapuser11
Home directories must be writable by their users
ldapuser11's password is 'password'.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
vim /etc/auto.master /rhome /etc/auto.misc
:wq!
# vim /etc/auto.misc
ldapuser11 --rw,sync host.domain11.example.com:/rhome/ldpauser11 :wq!
#service autofs restart
service autofs reload
chkconfig autofs on
su -ldapuser11
Login ldapuser with home directory
# exit

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Mahdi1985
2 years ago
hello, i have below full question for AutoFS: configure autofs to automount the home directories or remote users as follows: 1: utility.domain.com (172.1....) NFS-exports /rhome to your system. this filesystem contains a pre-configured home directory for the user remotuser16 2: remotuser16 home directory is utility.domain.com:/rhome/remotuser16 3: remotuser16 home directory should be automounted locally locally beneath /rhome as /rhome /remoteuser16 4: home directories must be writable by their users 5: remoteusers16 password is ratencot any one can help with the steps in sequence.
upvoted 1 times
Hmenu0s
1 year, 8 months ago
the question states " home directorie[s] must be writable by their user[s]" , so i assume they are referring to autofs indirect method mount. This will work for remoteuser16 as well as for future remoteuser homedir mounts. Here is how i will address it - # install autofs if not installed dnf install -y autofs # Create autofs file - defining the base mount dir . here it is /rhome - where all the homedirs will be mounted vi /etc/auto.master.d/auto.autofs /rhome /etc/home.indirect # create the indirect mount file vi /etc/home.indirect * -rw,sync host.domain11.example.com:/rhome/& # enable and start autofs systemctl enable --now autofs # Validate su - remoteuser16 pwd touch testfile
upvoted 2 times
...
...
preethi07
2 years, 6 months ago
vim /etc/auto.master.d/direct.autofs / -/etc/auto.direct vim /etc/auto.direct ldapuser11 -rw,sync,nstype=nfs4 host.domain11.example.com:/home systemctl restart autofs systemctl enable --now autofs
upvoted 3 times
STFN2019
2 years, 6 months ago
This seems like the most straightforward solution. Thx mate!
upvoted 2 times
...
...
Stachomir
2 years, 8 months ago
I think provided solution have mistake. I see resolution as below: vim /etc/auto.master.d/demo.autofs (/rhome /etc/auto.demo) vim /etc/auto.demo (ldapuser11 -rw,sync host.domain11.example.com:/home) As task mention that host.domain11.example.com exports /home dir ? Am I right?
upvoted 3 times
...
ALBY19
3 years, 6 months ago
vim /etc/auto.master.d/blah.autofs
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 ...