RedHat Related Exams
RH202 Exam
Who ever creates the files/directories on /archive group owner should be automatically should be the same group owner of /archive.
Answer and Explanation:
1.chmod g+s /archive
2.Verify using: ls -ld /archive
Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.
To set the SGID bit: chmod g+s directory
To Remove the SGID bit: chmod g-s directory
One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 124MB. Make successfully that the size of Logical Volume 245MB without losing any data. The size of logical volume 240MB to 255MB will be acceptable.
Answer and Explanation:
1.First check the size of Logical Volume: lvdisplay /dev/vo/myvol
2.Increase the Size of Logical Volume: lvextend -L+121M /dev/vo/myvol
3.Make Available the size on online: ext2online /dev/vo/myvol
4.Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol
5.Verify that the size comes in online or not: df -h
We can extend the size of logical Volume using the lvextend command. As well as to decrease the size of Logical Volume, use the lvresize command. In LVM v2 we can extend the size of Logical Volume without unmount as well as we can bring the actual size of Logical Volume on online using ext2online command.
Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.
Answer and Explanation: 1. vi /etc/resolv.conf
Write : nameserver 192.168.0.254