RHEL6 RHCSA Sample exam 1

Share this link

RHCSA 1

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

Prerequisites:
– a file system of 1GB for /home,
– 2GB of free space.

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

(53 votes, average: 3.40 out of 5)
Loading...
43 comments on “RHEL6 RHCSA Sample exam 1
  1. Ernesto Diaz says:

    Thanks!…

  2. mfaiello says:

    To prevent users from deleting a file belonging to another user, I had to use the recursive option on the Directory….

    chmod -R +t /home/rhce

    • CertDepot says:

      I add your excellent point to the solution, thanks.

    • mike says:

      there’s no need in -R because it makes sticky bit on files inside folder, and there’s no point doing that (sticky bit on files is just ignored). ONLY sticky bit on folder is important (people inside folder will be able delete only owned files) 🙂

      P.S. -> proof also on cbt nuggets lesson about chmod 😉

      I did this task without -R. all worked as needed.

      Thanks.

  3. Cerdocan says:

    I took the exam the last week and the Q&A were almost the same!Thank you so much for this help-

    • CertDepot says:

      I have to be clear: the exams offered here shouldn’t be exactly the same as the real ones, this would break the NDA (Non Disclosure Agreement). These exams only present typical exercises, nothing more.
      However, I’m glad it has helped you.

  4. Solo says:

    Hi for q6 (httpd)

    shouldn’t the access rule be :

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1 server1.example.com

  5. mike says:

    on “Create a new user “bob”. Give bob, not in the rhce group, read and write access to /home/rhce.” the solution gives bob rwx access to all files inside too, but maybe ‘x’ should not be granted?
    also any new file created by other guys in rhce group – are not accessible for bob 🙁 .

    how can we make that bob will have rw but not ‘x’ access on all files inside? (rwx for folder of course, to list it)

    who knows if giving extra permissions (too much for example, more than what asked) can lead to lose score? I want to allow many SElinux stuff for example on my exam, lot of booleans to allow, that SElinux will relax a bit and stop blocking stuff 😀 , but i afraid it can lead to lose score.

    thanks!

  6. mike says:

    bobs account expire in 1 week:
    # usermod -e “date+1week” bob –> Gives error on my centos 6.5.

  7. sherzod says:

    On question 10, I’m a bit confused by “regular files”….does that mean we should omit the hidden ones? If so, I’d go by

    30 8 2 * * /bin/find /home/bob -not -path ‘*/\.*’ -type f -delete

    Looks like a trick question to me 😉

    • CertDepot says:

      Your remark is interesting.
      However, don’t bother with “.files”. They are still regular files.

    • dirkxxvi says:

      I was wondering the same thing. Theres actually a similar question on Michael Jangs practice exam where you’re to set up a Cron Job every Sunday to delete ‘regular files’ in the /encrypt folder. Now that I think about it the rm command most of the time will ask you something to the effect of “rm: remove regular file ‘blahblahblah.txt” provided you don’t use rm -f.

      Personally I set it up as

      30 8 2 * * /bin/find /home/bob -type f | xargs rm -vf

      Right now I’m reading it that as long as I search using “-type f” I don’t have to worry about non-regular files being put on the chopping block for my cronjob. Is this correct?

  8. Matthew4912 says:

    Which part of the httpd.conf file does this directive go for Question 1?
    ———————————————–
    # vi /etc/httpd/conf/httpd.conf
    Order allow,deny
    Allow from 127.0.0.1 server1.example.com
    ——————————————————–

    Is it around this section?
    ——————————
    # This controls which options the .htaccess files in directories can
    # override. Can also be “All”, or any combination of “Options”, “FileInfo”,
    # “AuthConfig”, and “Limit”
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all

    ———————-

    • CertDepot says:

      If it could be around the .htaccess section, I would personally prefer around the DocumentRoot directory section.
      Extract from the httpd.conf file:

      # This should be changed to whatever you set DocumentRoot to.
      <Directory "/var/www/html">
      Order allow,deny
      Allow from all
      </Directory>
      
  9. pinoylinux says:

    I think double quote (“) in echo “This is a Test!” will give you an error, it should be single quote to treat everything inside as text ‘This is a Test!’

  10. pinoylinux says:

    Thank you for sharing this wonderful website!

  11. Neeraj says:

    Exam 1 , question 7
    Why are we allowing port 20 in addition to port 21 for a default FTP server config ? It is not mentioned in the question about the need to allow dport 20 . I believe we dont need to run the below command. Pls confirm …
    “# iptables -I INPUT -m state –state NEW -m tcp -p tcp –dport 20 -j ACCEPT “

  12. Dario Inversi says:

    Thanks for sharing this great website. I was able to pass my rhcsa also thanks to this great resource site. Keep up the great work man!

  13. Dario Inversi says:

    I think wget with an (*) asterisk at the end of the link will not allow you to download multiple files as in your example: kernel* it will just give you an error. You will have to download both the kernel firmware dependency and the kernel one by one.

    • CertDepot says:

      I agree with you but I don’t know which other command I can use.
      I can suggest this command but it’s not really readable:
      # curl -l -s http://mirrors.kernel.org/centos/6.4/updates/x86_64/Packages/ | grep kernel | awk -F ‘>’ ‘{ print $2; }’ | awk -F ‘<' '{ print "http://mirrors.kernel.org/centos/6.4/updates/x86_64/Packages/" $1; }' | xargs wget What do you think? 😉

      • Dario Inversi says:

        Yeah that’s a good one but it’s also hard to remember. For the RHCSA objective of upgrading the kernel you will only have to download 2 files in a remote directory that contains those files only. Therefore I would simply run:
        # wget -r http://mirrors.kernel.org/centos/6.4/updates/x86_64/Packages

        the -r option stands for recursive so you will download them all in one shot. Of course if you’d have more than those two files the whole directory will be downloaded locally but in the Red Hat exam you will only find those two.

        • tuxadmin says:

          Pardon me for asking this – I thought there is Internet access in the exam? How is it possible then to download the kernel from mirrors.kernel.org?

          • CertDepot says:

            No, there isn’t any Internet access during the exam.

          • tuxadmin says:

            Hi CertDepot,

            Then, how does one download the kernel files via wget? Or are those files available for down from the host/node machine itself? i.e. we can issue the wget command from the KVM guest to download from the host machine?

            Thanks!

          • Dario Inversi says:

            A file server link will be provided during the exam, you have to download the files from there. There’s no internet access.

  14. tuxadmin says:

    Sitting for the RHCSA & RHCE exams next week. Thanks for this great resource website!

  15. Neeraj says:

    why are none of the QUIZ links working ?

  16. afrojereshma says:

    Does anybody know how to differentiate the VM and desktop terminal on ex200(RHCSA)? I am going to take the exam soon and I know somebody who could not find VM or didn’t understand how to differentiate the VM and the desktop terminal when he took the exam. It was on kiosk. If anybody can provide answer for this then it would be really helpful.

    • CertDepot says:

      You should look at the virt-what command.
      When typing virt-what you can get two kinds of result:
      – nothing: this means that you are on bare-metal,
      – kvm or something else: you are in a virtual machine.
      Hope this helps.

  17. afrojereshma says:

    Thank you for your answer. I didn’t know about this. I have found it really helpful to differentiate the VM and the desktop terminal once I have both. Is the VM going to be open on the screen beforehand or the candidates need to open it through application toolbar? I am asking this because I heard from a candidate who could not even find anything else than a desktop terminal (which has no console). I am getting a bit confused about that so if someone can give some ideas that will be great.

  18. afrojereshma says:

    does any one have idea if I need to reduce a lv to 200MiB then how I am supposed to do it. I know how to do it in 200M or 200G but not sure about MiB.

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/    |