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.

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 3.25 out of 5)
Loading...

Leave a Reply

33 Comments on "RHEL6 RHCSA Sample exam 2"

Notify of
Sort by:   newest | oldest
Matt
Guest
Matt

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

Gianluca
Guest
Gianluca

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

Saint
Guest
Saint

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.

Ndi eddy
Guest
Ndi eddy

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

Thanks

Saint
Guest
Saint

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.

barks
Member
barks

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

bazimov
Member
bazimov

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?

kyle.r
Member
kyle.r

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

sherzod
Member
sherzod

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

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

Neeraj
Member
Neeraj

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

jayc
Member
jayc

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.

maksudur1
Member

# 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

maksudur1
Member

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

wpDiscuz

RHCSA7: Task of the day

Allowed time: 10 minutes.
Boot and change the root password before the end of the boot process.

RHCE7: Task of the day

Allowed time: 10 minutes.
Set up a NFS server that exports the /opt directory in read-only mode.

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

Recent Comments