RHEL6 RHCSA Sample exam 1

Share this link


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

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

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

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


  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.


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


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


          • 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.

RHCSA7: Task of the day

Allowed time: 15 minutes.
Get an iso image of CentOS 7 (or a DVD) and set up a local repository.

RHCE7: Task of the day

Allowed time: 3 minutes.
Configure your machine to be a router.

Follow me on Twitter

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...