
Online RHCE Test Brain Dump Question and Test Engine
Real RedHat RHCE Exam Dumps with Correct 111 Questions and Answers
NEW QUESTION 13
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.
Answer:
Explanation:
#useradd-Gadminharry
#useradd-Gadminnatasha
#useradd-s/sbin/nologintom
#idharry;idNatasha(Showadditionalgroup)
#cat/etc/passwd(Showtheloginshell)OR
#system-config-users
NEW QUESTION 14
CORRECT TEXT
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.
Answer:
Explanation:
#chkconfigautofson
#cd/etc/
#vim/etc/auto.master/rhome/etc/auto.ldap
#cpauto.miscauto.ldap
#vimauto.ladpldapuser40-rwsoftintr172.24.40.10:/rhome/ldapuser40*-rwsoftintr172.16.40.10:/rhome/&
#serviceautofsstop
#serverautofsstart
#showmount-e172.24.40.10
#su-ladpuser40
NEW QUESTION 15
CORRECT TEXT
Configure your NFS services. Share the directory by the NFS Shared services.
Answer:
Explanation:
/etc/init.d/rpcbindstart/etc/init.d/nfslockstart/etc/init.d/nfsstartchkconfigrpcbindonchkconfignfslockonchkconfignfsonshowmount-elocalhost
NEW QUESTION 16
CORRECT TEXT
Configure the system synchronous as 172.24.40.10.
Answer:
Explanation:
GraphicalInterfaces:System-->Administration-->Date&TimeOR
#system-config-date
NEW QUESTION 17
CORRECT TEXT
Notes:
NFS : NFS instructor.example.com:/var/ftp/pub/rhel6/dvd
YUM : http://instructor.example.com/pub/rhel6/dvd
ldap : http : //instructor.example.com/pub/EXAMPLE-CA-CERT
Install dialog package.
Answer:
Explanation:
yum install dialog
NEW QUESTION 18
CORRECT TEXT
Binding to an external validation server.
System server.domain11.example.com provides a LDAP validation service, your system should bind to this service as required:
Base DN of validation service is dc=example,dc=com
LDAP is used for providing account information and validation information Connecting and using the certification of http://server.domain11.example.com/pub/EXAMPLE-CA-CERT to encrypt
After the correct configuration, ldapuser1 can log into your system, it does not have HOME directory until you finish autofs questions, ldapuser1 password is password.
Answer:
Explanation:
yum-yinstallsssdauthconfig-gtkkrb5-workstationauthconfig-gtk//openthegraphicalinterfaceModifyuseraccountdatabasetoldapfillupDNandLDAPSERVERasquestionsrequireduseTLStoencryptconnectionsmakingtickwritehttp://server.domain11.example.com/pub/EXAMPLE-CA-CERTtodownloadcaauthenticationmethodchooseldappassword.Youcantestiftheldapuserisaddedbythefollowingcommand:Idldapuser1Note:userpassworddoesn'tnotneedtoset
NEW QUESTION 19
CORRECT TEXT
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.
Answer:
Explanation:
1.chmodg+s/data2.Verifyusing:ls-ld/dataPermissionshouldbelikethis:drwxrws---2rootsysadmin4096Mar1618:08/dataIfSGIDbitissetondirectorythenwhoeveryuserscreatesthefilesondirectorygroupownerautomaticallytheownerofparentdirectory.TosettheSGIDbit:chmodg+sdirectoryToRemovetheSGIDbit:chmodg-sdirectory
NEW QUESTION 20
CORRECT TEXT
You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for encryption communication.
Answer:
Explanation:
vi/etc/httpd/conf.d/ssl.conf<VirtualHost192.100.0.2>ServerNamewww.rhce.comDocumentRoot/var/www/rhceDirectoryIndexindex.htmlindex.htmServerAdminwebmaster@rhce.comSSLEngineonSSLCertificateFile/etc/httpd/conf/ssl.crt/server.crtSSLCertificateKeyFile/etc/httpd/conf/ssl.key/server.key</VirtualHost>
cd/etc/httpd/conf3maketestcert
Createthedirectoryandindexpageonspecifiedpath.(Indexpagecandownloadfromftp://server1.example.comatexamtime)
servicehttpdstart|restart
chkconfighttpdonApachecanprovideencryptedcommunicationsusingSSL(SecureSocketLayer).Tomakeuseofencryptedcommunicationaclientmustrequesttohttpsprotocolwhichisusesport443.ForHTTPSprotocolrequiredthecertificatefileandkeyfile.
NEW QUESTION 21
CORRECT TEXT
Adjust 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:
Explanation:
Additiondf-hTlvextend-L+100M/dev/vg0/voLvscanxfs_growfs/home///homeisthemounteddirectoryoftheLVMthisstepjustneedtodointhepracticeenvironmentandtestEXT4doesnotneedthisstep.resize2fs/dev/vg0/vo//usethiscommandtoupdateinexamination.df-hTORSubtractione2fsck-f/dev/vg0/voumount/homeresize2fs/dev/vg0/vo//thefinalrequiredpartitioncapacityis100Mlvreduce-l100M/dev/vg0/vomount/dev/vg0/vo/homedf-hT
NEW QUESTION 22
CORRECT TEXT
Configure a task: plan to run echo "file" command at 14:23 every day.
Answer:
Explanation:
(a)Createdasadministrator
#crontab-unatasha-e2314***/bin/echo"file"(b)Createdasnatasha
#su-natasha$crontab-e2314***/bin/echo"file"
NEW QUESTION 23
CORRECT TEXT
Configure a user account.
Create a user iar , uid is 3400. Password is redhat
Answer:
Explanation:
useradd-u3400iarpasswdiar
NEW QUESTION 24
CORRECT TEXT
Create a backup
Create a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.
Answer:
Explanation:
cd/usr/localtar-jcvf/root/backup.tar.bz2mkdir/testtar-jxvf/root/backup.tar.bz2-C/test//Decompressiontocheckthecontentisthesameasthe/usr/locaafterIfthequestionsrequiretousegziptocompress.change-jto-z.
NEW QUESTION 25
CORRECT TEXT
Open kmcrl value of 5 , and can verify in /proc/ cmdline
Answer:
Explanation:
#vim/boot/grub/grub.confkernel/vmlinuz-2.6.32-71.el6.x86_64roroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietkmcrl=5Restarttotakeeffectandverification:
#cat/proc/cmdlineroroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=usrhgbquietkmcrl=5
NEW QUESTION 26
CORRECT TEXT
Create a volume group, and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M.
Answer:
Explanation:
#fdisk
#partprobe
#pvcreate/dev/vda6
#vgcreate-s8Mvg1/dev/vda6-s
#lvcreate-nlvshare-l50vg1-l
#mkfs.ext4/dev/vg1/lvshare
#mkdir-p/mnt/data
#vim/etc/fstab/dev/vg1/lvshare/mnt/dataext4defaults00
#mount-a
#df-h
NEW QUESTION 27
CORRECT TEXT
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.
Answer:
Explanation:
#cat/etc/grub.conf
#cd/boot
#lftpit
#getdr/dom/kernel-xxxx.rpm
#rpm-ivhkernel-xxxx.rpm
#vim/etc/grub.confdefault=0
NEW QUESTION 28
CORRECT TEXT
Upgrade the kernel, start the new kernel by default. kernel download from this address:
ftp://server1.domain10.example.com/pub/update/new.kernel
Answer:
Explanation:
Downloadthenewkernelfileandtheninstallit.[root@desktop8Desktop]#lskernel-2.6.32-71.7.1.el6.x86_64.rpmkernel-firmware-2.6.32-71.7.1.el6.noarch.rpm[root@desktop8Desktop]#rpm-ivhkernel-*Preparing...###########################################[100%]1:kernel-firmware###########################################[50%]2:kernel################
#[100%]Verifythegrub.conffilewhetherusethenewkernelasthedefaultboot.[root@desktop8Desktop]
#cat/boot/grub/grub.confdefault=0titleRedHatEnterpriseLinuxServer(2.6.32-71.7.1.el6.x86_64)root(hd00)kernel/vmlinuz-2.6.32-71.7.1.el6.x86_64roroot=/dev/mapper/vol0-rootrd_LVM_LV=vol0/rootrd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietinitrd/initramfs-2.6.32-71.7.1.el6.x86_64.img
NEW QUESTION 29
CORRECT TEXT
Create a user alex with a userid of 3400. The password for this user should be redhat.
Answer:
Explanation:
useradd-u3400alex
passwdalex
su-alex
NEW QUESTION 30
CORRECT TEXT
Create a backup file named /root/backup.tar.bz2, which contains the contents of /usr/local, bar must use the bzip2 compression.
Answer:
Explanation:
cd/usr/localtar-jcvf/root/backup.tar.bz2*mkdir/testtar-jxvf/root/backup.tar.bz2-C/test/
NEW QUESTION 31
CORRECT TEXT
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).
Answer:
Explanation:
if=/dev/zeroof=/swapfilebs=1Mcount=600mkswap/swapfile/etc/fstab:/swapfileswapswapdefaults00mount-a
NEW QUESTION 32
CORRECT TEXT
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start.
Answer:
Explanation:
#cd/root;wgetftp://192.168.0.254/pub/boot.iso
#mkdir-p/media/cdrom
#vim/etc/fstab/root/boot.iso/media/cdromiso9660defaultsloop00
#mount-amount[-tvfstype][-ooptions]devicedir
NEW QUESTION 33
CORRECT TEXT
Configure the permissions of /var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that:
the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root.
the file /var/tmp/fstab should not be executable by anyone.
the user natasha is able to read and write /var/tmp/fstab.
the user harry can neither write nor read /var/tmp/fstab.
all other users (current or future) have the ability to read /var/tmp/fstab.
Answer:
Explanation:
cp-a/etc/fstab/var/tmp
cd/var/tmp
ls-l
getfacl/var/tmp/fstab
chmodugo-x/var/tmp/fstab[Noneedtodothistherewon'tbeexecutepermissionforthefilebydefault]
#setfacl-mu:natasha:rw/var/tmp/fstab
#setfacl-mu:harry:0/var/tmp/fstab(zero)[Readpermissionwillbethereforalltheusersbydefault.Checkitusingls-l/var/tmp/fstab]Verifyby[ls-la/var/tmp/fstab]
NEW QUESTION 34
CORRECT TEXT
Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.
Answer:
Explanation:
#yuminstall-yhttpd
#chkconfighttpdon
#cd/var/www/html
#wgethttp://ip/dir/example.html
#cpexample.comindex.html
#vim/etc/httpd/conf/httpd.confNameVirtualHost192.168.0.254:80<VirtualHost192.168.0.254:80>DocumentRoot/var/www/html/ServerNamestation.domain40.example.com</VirtualHost>
NEW QUESTION 35
CORRECT TEXT
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical volume named lv0 in this volume group, set size is 20 PE, make it as ext3 file system, and mounted automatically under data.
Answer:
Explanation:
fdisk/dev/vdapvcreate/dev/vda3vgcreate-s16Mvg0/dev/vda3lvcreate-nlv0-l20vg0mkfs.ext3/dev/mapper/vg0-lv0mkdir/data/etc/fstab:/dev/mapper/vg0-lv0/dataext3defaults00mount-amount|grepdata
NEW QUESTION 36
CORRECT TEXT
According the following requirements, configure autofs service and automatically mount to user's home directory in the ldap domain.
- Instructor.example.com (192.168.0.254) has shared /home/guests/ldapuserX home directory to your system by over NFS export, X is your hostname number.
- LdapuserX's home directory is exist in the instructor.example.com: /home/ guests/ldapuserX
- LdapuserX's home directory must be able to automatically mount to /home/ guests/ldapuserX in your system.
- Home directory have write permissions for the corresponding user.
However, you can log on to the ldapuser1 - ldapuser99 users after verification. But you can only get your corresponding ldapuser users. If your system's hostname is server1.example.com, you can only get ldapuser1's home directory.
Answer:
Explanation:
mkdir-p/home/guestscat/etc/auto.master:/home/guests/etc/auto.ldapcat/etc/auto.ldap:ldapuser1-rwinstructor.example.com:/home/guests/ldapuser1
automaticallymountalltheuser'shomedirectory
#*-rwinstructor.example.com:/home/guests/&
NEW QUESTION 37
......
Valid RHCE Test Answers & RedHat RHCE Exam PDF: https://www.exam4labs.com/RHCE-practice-torrent.html