EX200 Exam QuestionsBrowse all questions from this exam

EX200 Exam - Question 53


SIMULATION -

One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server

192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.

Show Answer
Correct Answer:

To ensure that when NIS users log into your system, the home directory is automatically mounted, you need to perform the following steps: First, ensure that your system is configured to use the appropriate NIS domain and NIS server. This can typically be done using the 'authconfig' command or the 'system-config-authentication' tool, depending on your system's version. For example, you might use the command 'authconfig --nisserver=192.168.0.254 --nisdomain=RHCE --update'. Alternatively, you can use the 'system-config-authentication' tool by enabling NIS, typing the domain 'RHCE', and specifying the NIS server '192.168.0.254'. Once NIS is configured, create the directory structure for the home directories using 'mkdir -p /rhome/stationx', replacing 'x' with your station number. Next, edit the '/etc/auto.master' file to include an entry for '/rhome/stationx /etc/auto.home --timeout=60'. Then, create the '/etc/auto.home' file with the content '* -rw,soft,intr 192.168.0.254:/rhome/stationx/&', again ensuring to replace 'x' with your station number. Finally, restart the autofs service using 'service autofs restart'. After these steps, when NIS users such as 'nisuser2001' or 'nisuser2002' log in, their home directories should automatically mount, ensuring seamless access to their files.

Discussion

2 comments
Sign in to comment
novac1111
Jan 26, 2021

If I am not wrong, the command, authconfig is gone for rhel 8.

Rizos
Nov 12, 2020

So is this question for RHCSE? Because it says that the domain is configured for RHCE. Im confused?