RHEL6 RHCSA Sample exam 2

Share this link

RHCSA 2

This is a RHCSA sample exam. You’ve got 2 hours and half.

Prerequisites:
– 1GB of free space.

One precision: nobody checks your answers but solutions are provided.

(12 votes, average: 2.92 out of 5)
Loading...
33 comments on “RHEL6 RHCSA Sample exam 2
  1. Matt says:

    You are setting/adding SELINUX contexts to the new /www/html folder….

    Couldn’t you have also used…

    chcon -R –reference=/var/www/html /www/html

    • CertDepot says:

      No, using the chcon command is not the best answer because changes could be removed after a reboot/relabel.
      With the semanage command, changes are definitive.

  2. Gianluca says:

    Hi, first thank you for your work on this site. It is very helpful
    On question 8, RHCSA sample 2, you suggest:
    1. # cd /home/tom
    2. # echo “/bin/echo Hello!” > cmd
    3. # setfacl -m u:steven:r-x cmd;
    4. # setfacl -m u:steven:–x ../tom
    5. # setfacl -m u:tom:— cmd
    6. # setfacl -m u:andrew:— cmd
    Since i’m using CentOS 6.4, the home directories are being created with 700 default permissions.
    For this reason, when another user try to access or execute a file inside tom’s directory, a “Permission denied” is received. Hence i think step 6 is useless.
    Correct me if i’m wrong.
    Best regards

    • CertDepot says:

      I think you are right. But, as there is no assumption regarding the home directories default permissions, I wouldn’t call step 6 useless but optional 😉

    • Saint says:

      An addition to meet the requirement “belonging to user and group root in tom‘s directory ”
      chown tom:root cmd

      Also we could alternatively use
      chmod 070 /home/tom/cmd in place of step 5.

      • CertDepot says:

        I don’t think you need to type ‘chown tom:root cmd‘. As you are root (assumed by the ‘#’ character), the file you create is owned by the root user and the root group.
        Concerning the step 5, as the owner is root, your solution can’t be valid.

  3. Ndi eddy says:

    A little bit confuse here. Is it chattr -d /root/dontcopy or chattr +d /root/dontcopy

    Thanks

    • CertDepot says:

      If I take the man page regarding chattr, it says:
      The operator “+” causes the selected attributes to be added to the
      existing attributes of the files; “-” causes them to be removed; and
      “=” causes them to be the only attributes that the files have.
      Also, the “d” option stands for “no dump”. Consequently, as we don’t want the file to be dumped, the option should be “+d”.
      You were right to be confuse, my answer was wrong. I’m correcting it right now.

  4. Saint says:

    For question 5, I am a little confused on size.
    what did you mean by 180PE (is it physical extents?)
    How is that size achieved with the command lvcreate –name lv_vol -l 180 vg?
    man page for lvcreate says that the default for size is megabytes.

    • CertDepot says:

      Yes, it is 180 Physical Extents. I have added this information for clarity.
      Concerning the lvcreate command, the -l option only takes a number of physical extents as argument or a pourcentage if you append %VG, %PVS, %FREE, %ORIGIN.

  5. barks says:

    First, a big thanks for the work put into this web page. It’s a great resource.
    Question 9 in Quiz 2
    The setfacl for access to Tom’s home dir for Steven; # setfacl -m u:steven:–x ../tom
    shouldn’t the command include r (read) so the files can be listed?
    # setfacl -m u:steven:r-x ../tom

  6. bazimov says:

    Hi, I would like to thank you for this website and your hard work. I have passed the RHCSA recently. I do not want to lay out the questions here but I had hard time on finding the device for creating Volume group plus swap. I was clearly good at LVM and Swap creation, but could not locate the device. Do you think device block is hidden or did I need special skills to locate the device?

    • CertDepot says:

      Hi, to get some information about the configuration, you could use the following commands:
      – ‘fdisk -l’: to know the available partitions,
      – ‘vgdisplay’/’vgs’: to get the list of volume groups and their free space,
      – ‘lvdisplay’/’lvs’: to get the list of logical volumes.
      Then, if no space was available, you had to create a new partition or decrease the size of an existing logical volume (with eventual reboot in single user mode if necessary).
      This is not always an easy operation 😉

      • bazimov says:

        Yeah, I probably spend much of my time looking for it then got short on time. I was following the saying of do the easiest ones first, and partitions were easiest ones in my mind. decreasing did not come to my mind. I could do that, decrease the root / dir and make me enough of a space for 1G or so. fdisk -l did not give any extra option. Well yeah I should have done some trick like that decrease and create that LV. But I am glad I have passed, that is really great feeling to see the ‘PASS’. Thanks for your materials here, I will try to use as much of these here and other books included.

  7. kyle.r says:

    Likely a preference, but instead of a REJECT statement in the iptables rules, you could have simply specified a source subnet from which to accept SSH traffic on port 22

    -A INPUT -s sourceCIDR -m tcp -p tcp –dport 22 -j ACCEPT

    • CertDepot says:

      Yes, you are right.

      • needingsleep3 says:

        When I saw that question, I thought about changing the commented ‘AddressFamily 0.0.0.0’ value on /etc/ssh/sshd_config with the required IP range. Do you guys reckon that it should do the trick, or does it have to be IPtables? Thanks.

        • CertDepot says:

          ‘AddressFamily 0.0.0.0’ doesn’t exist. AddressFamily only allows any, inet and inet6 values. This directive specifies which address family is used by ssh (see man sshd_config).
          ‘ListenAddress IPv4|IPv6’ specifies the local address, in fact the one assigned to the local network interface, sshd should listen on.
          Sorry, but both directives can’t satisfy the requirement.

  8. sherzod says:

    For question 5, if you need to find the location of the file, issue

    rpm -ql (lower case L) vsftpd | grep TUNING

  9. Neeraj says:

    Question 8: This command at line # 4 in the hint ” # cp -rp /var/www /www” seems to be incorrect.
    This is because when you do this, it copies the www directory as well to the destination “/www” directory. So the dir structure ends up becoming “/www/www” at the destination end. IT should instead of
    cp -rp /var/www/* /www

  10. jayc says:

    I passed my RHCSA recently with a score of 283/300. I just wanted to thank you for the many resources that you have available on your site. They helped me out tremendously.

  11. maksudur1 says:

    # echo “Hello world!” >/www/html/index.html —that doesn’t work on my rhel-6 machine but > /var/www/html/index.html is working.
    thanks

  12. maksudur1 says:

    QU-6
    an easy way—
    #yum install httpd -y
    #yum install elinks -y
    #cd /var/www/html
    #vim index.html
    “hello world”
    #service httpd reload
    #elinks http://localhost

Leave a Reply

Upcoming Events (Local Time)

There are no events.

Follow me on Twitter

Archives

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |