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 3 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:
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
# Create the directory mkdir /home/admins # Change the owner of the directory to root sudo chown root: /home/admins # Change the group of the directory to admin sudo chgrp admin /home/admins # Set the permissions so that the owner and the group can read and write, # but others cannot access it sudo chmod 770 /home/admins # Set the group ID on the directory so that files created within it # inherit the group of the directory (admin) rather than the group of the user that created the file sudo chmod g+s /home/admins
#mkdir -p /home/admins #chgrp admin /home/admins #chmod 770 /home/admins - 7 is for max permission for dir and 6 is for files #chmod g+s /home/admins #su - harry #touch /home/admins/testfile #ls-ltr /home/admins/ - to verify
mkdir -p /home/admins chown -R :admin /home/admins chmod 2070 /home/admins touch /home/admins/office.txt ll /home/admins Please Give me your views on this...