SIMULATIONWho ever creates the files/directories on a data group owner should automatically be in the same group owner as data.
Answer(s): A
1. chmod g+s /data2. Verify using: ls -ld /dataPermission should be like this: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /dataIf 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
SIMULATIONYour System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's IP address has assigned. How will you forward the packets from one network to another network?
echo "1" >/proc/sys/net/ipv4/ip_forwardvi /etc/sysctl.confnet.ipv4.ip_forward = 1If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to/proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on / etc/sysctl.conf file.
SIMULATIONCreate the user named eric and deny to interactive login.
useradd eric passwd ericvi /etc/passwderic:x:505:505::/home/eric:/sbin/nologinWhich shell or program should start at login time is specified in /etc/passwd file? By default, Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or / bin/ false instead of login shell.
SIMULATION/data Directory is shared from the server1.example.com server. Mount the shared directory that:
1. vi /etc/auto.master/mnt /etc /auto.misc --timeout=50vi /etc/auto.miscdata -rw,soft,intr server1.example.com:/dataservice autofs restartchkconfig autofs onWhen you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem./etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.
SIMULATIONOne Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1Verify the Size on mounted directory: df -h or df -h mounted directory nameUse: lvextend -L+400M /dev/vg0/lv1ext2online -d /dev/vg0/lv1 to bring extended size online.Again Verify using lvdisplay and df -h command.
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.