RedHat RHCE Actual Free Exam Questions & Community Discussion
CORRECT TEXT
Create 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.
Create 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.
Correct Answer:
#cd/home/
#mkdiradmins/
#chown.adminadmins/
#chmod770admins/
#chmodg+sadmins/
#mkdiradmins/
#chown.adminadmins/
#chmod770admins/
#chmodg+sadmins/
CORRECT TEXT
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.
Correct Answer:
Createapartitionhavingsize5GBandchangethesysteid'8e'.
usepartprobecommand
pvcreate/dev/hda9Supposeyourpartitionnumberishda9.
vgextendtest0/dev/hda9vgextendcommandaddthephysicaldiskonvolumegroup.
lvextend-L+5120M/dev/test0/lvtestvolume
verifyusinglvdisplay/dev/test0/lvtestvolume.
usepartprobecommand
pvcreate/dev/hda9Supposeyourpartitionnumberishda9.
vgextendtest0/dev/hda9vgextendcommandaddthephysicaldiskonvolumegroup.
lvextend-L+5120M/dev/test0/lvtestvolume
verifyusinglvdisplay/dev/test0/lvtestvolume.
CORRECT TEXT
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and
192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and
192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.
Correct Answer:
vi/etc/sysconfing/networkNETWORKING=yesHOSTNAME=station?.example.comGATEWAY=192.168.0.254servicenetworkrestart2.vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0ONBOOT=yesBOOTPROTO=staticIPADDR=X.X.X.XNETMASK=X.X.X.XGATEWAY=192.168.0.254ifdowneth0ifupeth0
CORRECT TEXT
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Correct Answer:
below
iptables-F
serviceiptablessave
iptables-AINPUT-s172.25.0.0/16-jREJECT
serviceiptablessave
serviceiptablesrestart
iptables-F
serviceiptablessave
iptables-AINPUT-s172.25.0.0/16-jREJECT
serviceiptablessave
serviceiptablesrestart
CORRECT TEXT
Configure your Host Name, IP Address, Gateway and DNS.
Host name: station.domain40.example.com
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24
Gateway172.24.40.1
DNS:172.24.40.1
Configure your Host Name, IP Address, Gateway and DNS.
Host name: station.domain40.example.com
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24
Gateway172.24.40.1
DNS:172.24.40.1
Correct Answer:
#cd/etc/syscofig/network-scripts/
#ls
#vimifcfg-eth0(ConfigureIPAddressGatewayandDNS)IPADDR=172.24.40.40GATEWAY=172.24.40.1DNS1=172.24.40.1
#vim/etc/sysconfig/network(ConfigureHostName)HOSTNAME=station.domain40.example.comORGraphicalInterfaces:System->Preference->NetworkConnections(ConfigureIPAddressGatewayandDNS)Vim/etc/sysconfig/network(ConfigureHostName)
#ls
#vimifcfg-eth0(ConfigureIPAddressGatewayandDNS)IPADDR=172.24.40.40GATEWAY=172.24.40.1DNS1=172.24.40.1
#vim/etc/sysconfig/network(ConfigureHostName)HOSTNAME=station.domain40.example.comORGraphicalInterfaces:System->Preference->NetworkConnections(ConfigureIPAddressGatewayandDNS)Vim/etc/sysconfig/network(ConfigureHostName)
CORRECT TEXT
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.
Correct Answer:
vi/etc/resolv.confnameserver172.24.254.254
hostserver1.example.comOneveryclientsDNSserverisspecifiedin/etc/resolv.conf.WhenyourequestbynameittriestoresolvfromDNSserver.
hostserver1.example.comOneveryclientsDNSserverisspecifiedin/etc/resolv.conf.WhenyourequestbynameittriestoresolvfromDNSserver.
CORRECT TEXT
Create the user named eric and deny to interactive login.
Create the user named eric and deny to interactive login.
Correct Answer:
useradderic
passwderic
vi/etc/passwd
eric:x:505:505::/home/eric:/sbin/nologinWhichshellorprogramshouldstartatlogintimeisspecifiedin/etc/passwdfile?BydefaultRedhatEnterpriseLinuxassignsthe/bin/bashshelltotheusers.Todenytheinteractiveloginyoushouldwrite/sbin/nologinor/bin/falseinsteadofloginshell.
passwderic
vi/etc/passwd
eric:x:505:505::/home/eric:/sbin/nologinWhichshellorprogramshouldstartatlogintimeisspecifiedin/etc/passwdfile?BydefaultRedhatEnterpriseLinuxassignsthe/bin/bashshelltotheusers.Todenytheinteractiveloginyoushouldwrite/sbin/nologinor/bin/falseinsteadofloginshell.
0
0
0
10
