100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA(EX200) EXAM-PAPER SOLVED $11.49   Add to cart

Exam (elaborations)

RHCSA(EX200) EXAM-PAPER SOLVED

 13 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA(EX200) EXAM-PAPER SOLVED

Preview 2 out of 6  pages

  • August 16, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
CLOUND
RHCSA(EX200) EXAM-PAPER SOLVED
1. Create a container on node1 as Andrew :- using
https://github.com/sachinyadav3496/Te... - ANS-• ssh andrew@localhost
• wget https://github.com/sachinyadav3496/Te...

• podman image build . -t myapp

• podman image ls

podman ps

curl 'http://(container web location)

1.) Write a script (mysearch) to list the contents of /usr that are Above 10mib and below
30mib

2.) The script should be present in /usr/local/bin

3.)After execution, the script should automatically wirite the lines and save it to lines
/root/lines - ANS-#find /usr -size -30M +10M

#vim /usr/local/bin/mysearch
(inside of the file)
find /usr -size -30M +10M > /root/lines


#chmod +x /usr/bin/local/bin/mysearch


#mysearch

#vim /root/lines

1.) Write a script mysearch to list the contents of /usr that are below 10mib

2.) The script should be present in /usr/local/bin

3.) After execution, the script should atuomatically write all the line and save it to
root/lines - ANS-find /usr -size -10M

vim /usr/local/bin/mysearch
(inside of file)

#!/bin/bash

, find /usr/-size -10M > /root/lines



chmod +x /usr/local/bin/mysearch

cat /root/lines

1) set default permissions for user alex for all newly created files and folders

2) set permissions to the all newly created files r--r--r--

3)set permissions to the all newly created directory r-xr-xr-x - ANS-id alex
su -alex
mkdir aa
touch bb
ll
vim .bashrc

(inside file)
edit umask
0222
source .bashrc
mkdir cc
touch dd
ll

3. Debug SE-Linux - ANS-# semanage port -a -t http_port_t -p tcp 82 (add port on SE-
Linux policy)#
systemctl restart httpd
# systemctl enable httpd

A group name is 'elite', they have to give adminstrative permission without password -
ANS-getent group elite
vim /etc/sudoers.d/elite
%elite ALL=(ALL) NOPASSWD:ALL
:wq

Configure the default password policy for new users to change their password after 60
days. - ANS-#vim /etc/login.defs

(inside file)
edit PASS_MAX_DAYS 60
:wq
useradd abcd
chage -l acbd

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 CLOUND. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

82871 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
$11.49
  • (0)
  Add to cart