100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA Exam Questions and Answers $10.99   Add to cart

Exam (elaborations)

RHCSA Exam Questions and Answers

 7 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA Exam Questions and Answers

Preview 2 out of 6  pages

  • August 15, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
millyphilip
RHCSA Exam Questions and Answers
Set cronjob for user natasha (student) to do /bin/echo hiya at 14:23 - Answer -# crontab
-e -u natasha 23 14 * * * /bin/echo hiya

SELinux must be running in the Enforcing mode - Answer -# cat /etc/selinux/config
# setenforce 1
# vim /etc/selinux/config
## selinux=enforcing
sestatus

1. A YUM repository has been provided at
http://server.domain11.example.com/pub/x86_64/Server. Configure your system to use
this location as a default repository. - Answer -'cd /etc/yum.repo.d/'
'touch exam.repo'
'vim exam.repo'
###
[exam]
name=exam
baseurl=http://...
enable=1
nogpgcheck=0
###
'yum repo list' // (This verifies that it is enabled)

Create the following users, groups, and group memberships:
· A group named adminuser
· A user natasha who belongs to admin user as a secondary group
· A user harry who also belongs to admin user as a secondary group
· A user sarah who does not have access to an interactive shell on the system, and who
is not a member of adminuser, natasha, harry, and sarah should all have the password
of redhat. - Answer -'addgroup adminuser'
'useradd natasha'
'usermod -a -G adminuser natasha'
'useradd harry'
'usermod -a -G adminuser harry'
'useradd -s /sbin/nologin sarah'
'passwd natasha'
'passwd harry'
'passwd sarah'

, Configure the FTP service in your system, allow remote access to anonymous login and
download the program by this service. Service is still running after system rebooting. -
Answer -'yum install vsftpd'
'systemctl start vsftpd'
'systemctl enable vsftpd'
'rpm -qc vsftpd' // list all vsftpd files for .conf file
'vim file.conf'
#set anonymous_enable=YES
'systemctl restart vsftpd'

Configure your web services, download from
http://instructor.example.com/pub/serverX.html , and the services must be still running
after system rebooting - Answer -'cd /var/www/html'
'wget http://instructor.example.com/pub/serverX.html'
'mv server.html index.htlm'
'systemctl restart httpd'
'systemctl status httpd' //verify that the system is enabled

Download the document from ftp://instructor.example.com/pub/testfile, find all lines
containing [abcde] and redirect the /MNT/answer document, then rearrange the order
according to the original content - Answer -'wget
ftp://instructor.example.com/pub/testfile'
'mkdir -p /MNT/answer'
'grep 'abcde' > /MNT/answer'

Update the kernel from ftp://instructor.example.com/pub/updates - Answer -'yum update
kernel -y'

User mary must configure a task
Requirement: The local time at 14:23 every day echo "Hello World.". - Answer -crontab -
e -u mary
###
23 14 * * * echo "Hello World"

There is a local logical volumes in your system, named with common and belong to
VGSRV volume group, mount to the /common directory. The definition of size is 128
MB.Requirement:Extend the logical volume to 190 MB without any loss of data. The
size is allowed between 160-160 MB after extending. - Answer -'lvextend -L 190
/dev/mapper/vgsrv-common resize2fs /dev/mapper/vgsrv-common'

There is a local logical volumes in your system, named with shrink and belong to
VGSRV volume group, mount to the /shrink directory. The definition of size is 320
MB.Requirement:Reduce the logical volume to 220 MB without any loss of data. The
size is allowed between 200-260 MB after reducing. - Answer -'lvreduce -resizefs -L
220M /dev/mapper/vgsrv-shrink'

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller millyphilip. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

78998 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart