RHCE試験無料問題集「RedHat Red Hat Certified Engineer - RHCE 認定」

CORRECT TEXT
Configure autofs to automount the home directories of LDAP users as follows:
host.domain11.example.com NFS-exports /home to your system.
This filesystem contains a pre-configured home directory for the user ldapuser11 ldapuser11's home directory is host.domain11.example.com /rhome/ldapuser11 ldapuser11's home directory should be automounted locally beneath /rhome as /rhome/ldapuser11
Home directories must be writable by their users
ldapuser11's password is 'password'.
正解:
vim/etc/auto.master/rhome/etc/auto.miscwq!
#vim/etc/auto.miscldapuser11--rwsynchost.domain11.example.com:/rhome/ldpauser11:wq!
#serviceautofsrestart
serviceautofsreload
chkconfigautofson
su-ldapuser11Loginldapuserwithhomedirectory
#exit
CORRECT TEXT
One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.
正解:
lvextend-L+200M/dev/test0/testvolume1Uselvdisplay/dev/test0/testvolume1)
ext2online-d/dev/test0/testvolume1lvextendcommandisusedtheincreasethesizeofLogicalVolume.Othercommandlvresizecommandalsoheretoresize.Andtobringincreasedsizeononlineweusetheext2onlinecommand.
CORRECT TEXT
Create a new logical volume according to the following requirements:
The logical volume is named database and belongs to the datastore volume group and has a size of 50 extents.
Logical volumes in the datastore volume group should have an extent size of 16 MB.
Format the new logical volume with a ext3 filesystem.
The logical volume should be automatically mounted under /mnt/database at system boot time.
正解:
fdisk-cu/dev/vdapartx-a/dev/vdapvcreate/dev/vdaxvgcreatedatastore/dev/vdax-s16Mlvcreate-l50-ndatabasedatastoremkfs.ext3/dev/datastore/databasemkdir/mnt/databasemount/dev/datastore/database/mnt/database/df-Thvi/etc/fstab/dev/datastore/database/mnt/database/ext3defaults00mount-a
CORRECT TEXT
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.
正解:
vi/etc/resolv.confnameserver172.24.254.254
hostserver1.example.comOneveryclientsDNSserverisspecifiedin/etc/resolv.conf.WhenyourequestbynameittriestoresolvfromDNSserver.
CORRECT TEXT
Create a Shared Directory.
Create a shared directory /home/admins, make it has the following characteristics:
/home/admins belongs to group adminuser
This 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-Radminuser/home/adminschmodg+w/home/adminschmodg+s/home/admins
CORRECT TEXT
SELinux must run in force mode.
正解:
/etc/sysconfig/selinuxSELINUX=enforcing
CORRECT TEXT
There is a local logical volumes in your system, named with shrink and belong to VGSRV volume group, mount to the /shrink directory. The definition of size is 320 MB.
Requirement:
Reduce the logical volume to 220 MB without any loss of data. The size is allowed between 200-260 MB after reducing.
正解:
cd;umount/shrinke2fsck-f/dev/mapper/vgsrv-shrinkresize2fs/dev/mapper/vgsrv-shrink220Mlvreduce-L220M/dev/mapper/vgsrv-shrinkmount-a
CORRECT TEXT
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
正解:
#useradd-u601-s/sbin/nologinuser1
#passwduser1redhat
CORRECT TEXT
Add 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-Gadminharry
#useradd-Gadminnatasha
#useradd-s/sbin/nologintom
#idharry;idNatasha(Showadditionalgroup)
#cat/etc/passwd(Showtheloginshell)OR
#system-config-users
CORRECT TEXT
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com
正解:
Configuretheclient:Yum-yinstallchronyVim/etc/chrony.confAdd:serverclassroom.example.comiburstStart:systemctlenablechronydsystemctlrestartchronydValidate:timedatectlstatus