EX200.pdf - RedHat EX200 Red Hat Certified System...

This preview shows page 1 - 3 out of 4 pages.

The preview shows page 1 - 3 out of 4 pages.
EX200RedHatRed Hat Certified System Administrator (RHCSA)
Question: 95Add 3 users: harry, natasha, tom.The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom’s loginshell should be non-interactive.A. Answer see in the explanation.A
# useradd -G admin harry# useradd -G admin natasha# useradd -s /sbin/nologin tom# id harry;id Natasha (Show additional group)# cat /etc/passwd(Show the login shell)OR# system-config-usersQuestion: 96Create a catalog under /home named admins. Its respective group is requested to be the admin group. The groupusers could read and write, while other users are not allowed to access it. The files created by users from the samegroup should also be the admin group.A. Answer see in the explanation.A
# cd /home/# mkdir admins /# chown .admin admins/ # chmod 770 admins/# chmod g+s admins/

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 4 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
IP address, Harry, Domain Name System, Hostname

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture