RedHat EX200 Exam Practice Questions (P. 5)
- Full Access (111 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
SIMULATION -
Add user: user1, set uid=601 -
Password: redhat -
The user's login shell should be non-interactive.
Add user: user1, set uid=601 -
Password: redhat -
The user's login shell should be non-interactive.
Correct Answer:
See explanation below.
# useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat
See explanation below.
# useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat

For the simulation addressing user creation with non-interactive login, utilize the command: `useradd -u 601 -s /sbin/nologin user1` to establish the user with specified UID and shell settings. Then, setting the password can be effectively managed through: `echo "redhat" | passwd --stdin user1`. This streamlined approach ensures both requirements are met succinctly while adhering to security best practices by avoiding manual password entry, which can be observed in an echo environment.
send
light_mode
delete
Question #22
SIMULATION -
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat
Correct Answer:
See explanation below.
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
See explanation below.
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat

The first user comment offers a simple and direct method to both create the users (user2, user3) and assign them to the 'admin' group while also setting their passwords to 'redhat'. This approach is efficient and uses piping to set the password, minimizing the need for interactive input which aligns well with automated scripts or multiple user creations. This is a practical choice for system administrators looking to streamline user management tasks efficiently in a live production or a test environment during the RHCSA exam.
send
light_mode
delete
Question #23
SIMULATION -
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.
Correct Answer:
See explanation below.
# cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
# ls -l
-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab
See explanation below.
# cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
# ls -l
-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab
send
light_mode
delete
Question #24
SIMULATION -
Configure a task: plan to run echo "file" command at 14:23 every day.
Configure a task: plan to run echo "file" command at 14:23 every day.
Correct Answer:
See explanation below.
(a) Created as administrator
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"
See explanation below.
(a) Created as administrator
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"
send
light_mode
delete
Question #25
SIMULATION -
Configure a default software repository for your system.
One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.
Configure a default software repository for your system.
One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.
Correct Answer:
See explanation below.
Yum-config-manager --add-repo=http://content.example.com/rhel7.0/x86-64/dvdג€ is to generate a file vim content.example.com_rhel7.0_x86_64_dvd.repo, Add a line gpgcheck=0
Yumcleanall -
Yumrepolist -
Almost 4305 packages are right, Wrong Yum Configuration will lead to some following questions cannot be worked out.
See explanation below.
Yum-config-manager --add-repo=http://content.example.com/rhel7.0/x86-64/dvdג€ is to generate a file vim content.example.com_rhel7.0_x86_64_dvd.repo, Add a line gpgcheck=0
Yumcleanall -
Yumrepolist -
Almost 4305 packages are right, Wrong Yum Configuration will lead to some following questions cannot be worked out.
send
light_mode
delete
All Pages