SIMULATIONAdjust the size of the Logical Volume.Adjust the size of the vo Logical Volume, its file system size should be 290M. Make sure that the content of this system is complete.Note: the partition size is rarely accurate to the same size as required, so in the range 270M to 320M is acceptable.
Answer(s): A
Additiondf -hTlvextend -L +100M /dev/vg0/voLvscanxfs_growfs /home/ //home is the mounted directory of the LVM, this step just need to do in the practice environment, and test EXT4 does not need this step.resize2fs /dev/vg0/vo// use this command to update in examination.df -hTORSubtractione2fsck -f/dev/vg0/voumount /homeresize2fs /dev/vg0/vo // the final required partition capacity is 100M lvreduce -l 100M /dev/vg0/vo mount /dev/vg0/vo/homedf -hT
SIMULATIONCreate User Account.Create the following user, group and group membership:Adminuser groupUser natasha, using adminuser as a sub group User Harry, also using adminuser as a sub groupUser sarah, can not access the SHELL which is interactive in the system, and is not a member of adminuser, natasha꒰harry꒰sarah password is redhat.
groupadd adminuseruseradd natasha -G adminuseruseradd haryy -G adminuseruseradd sarah -s /sbin/nologinPasswd user name // to modify password or echo redhat | passwd --stdin user name id natasha // to view user group.
SIMULATIONConfigure /var/tmp/fstab Permission.Copy the file /etc/fstab to /var/tmp/fstab. Configure var/tmp/fstab permissions as the following: Owner of the file /var/tmp/fstab is Root, belongs to group rootFile /var/tmp/fstab cannot be executed by any userUser natasha can read and write /var/tmp/fstabUser harry cannot read and write /var/tmp/fstabAll other users (present and future) can read var/tmp/fstab.
cp /etc/fstab /var/tmp//var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:--- /var/tmp/fstabUse getfacl /var/tmp/fstab to view permissions
SIMULATIONConfigure a cron Task.User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day.
crontab –e –u natasha23 14/bin/echo hiyacrontab -l -u natasha // viewsystemctlenable crondsystemcdlrestart crond
SIMULATIONCreate a Shared Directory.Create a shared directory /home/admins, make it has the following characteristics:/home/admins belongs to group adminuserThis directory can be read and written by members of group adminuser Any files created in /home/ admin, group automatically set as adminuser.
mkdir /home/adminschgrp -R adminuser /home/adminschmodg+w /home/adminschmodg+s /home/admins
Post your Comments and Discuss RedHat EX200 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the EX200 content, but please register or login to continue.