SIMULATIONConfigure your Host Name, IP Address, Gateway and DNS.Host name: station.domain40.example.com/etc/sysconfig/networkhostname=abc.comhostname abc.comIP Address:172.24.40.40/24Gateway172.24.40.1DNS:172.24.40.1
Answer(s): A
# cd /etc/syscofig/network-scripts/# ls# vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40 GATEWAY=172.24.40.1DNS1=172.24.40.1# vim /etc/sysconfig/network(Configure Host Name)HOSTNAME= station.domain40.example.comORGraphical Interfaces:System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim /etc/sysconfig/ network(Configure Host Name)
SIMULATIONAdd 3 users: harry, natasha, tom.The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom's login shell should be non-interactive.
# 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-users
SIMULATIONCreate a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be the admin group.
# cd /home/# mkdir admins /# chown .admin admins/# chmod 770 admins/# chmod g+s admins/
SIMULATIONConfigure a task: plan to run echo hello command at 14:23 every day.
# which echo# crontab -e23 14 * * * /bin/echo hello# crontab -l (Verify)
SIMULATIONFind the files owned by harry, and copy it to catalog: /opt/dir
# cd /opt/# mkdir dir# find / -user harry -exec cp -rfp {} /opt/dir/ \;
Post your Comments and Discuss RedHat EX200 exam prep with other Community members: