Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 27 of 33
Free Preview · 33 of 108 · questions 1–33 of 108 are free. Sign up free to sync your progress across devices.
Hotspot Scenario
Select the appropriate option to complete the statement. Click Check Answer below to see the marked solution.
Hotspot Solution:
lets assume natasha harry and sarah arent made yet which you can check using id "their usernames" lets also assume adminuser isnt created yet if it isnt you can run grep adminuser /etc/group to check if they arent groupadd adminuser useradd -G adminuser natasha useradd -G adminuser Harry useradd -s /sbin/nologin sarah passwd natasha passwd Harry passwd sarah grep adminuser /etc/group to verify if the two users are in there
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
lets assume natasha harry and sarah arent made yet which you can check using id "their usernames" lets also assume adminuser isnt created yet if it isnt you can run grep adminuser /etc/group to check if they arent groupadd adminuser useradd -G adminuser natasha useradd -G adminuser Harry useradd -s /sbin/nologin sarah passwd natasha passwd Harry passwd sarah grep adminuser /etc/group to verify if the two users are in there
# groupadd Adminuser # for i in natasha Harry ; do useradd -G Adminuser $i ; echo "redhat" | passwd --stdin $i ; done # useradd -s /sbin/nologin sarah ; echo "redhat" | passwd --stdin sarah