100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHSCA(complete study guide with correct solutions.) $11.99   Add to cart

Exam (elaborations)

RHSCA(complete study guide with correct solutions.)

 0 view  0 purchase
  • Course
  • Institution

Add 3 users: harry, natasha, tom. The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom's login shell should be non-interactive. Answer: # useradd -G admin harry # useradd -G admin natasha # useradd -s /sbin/nologin tom # id harry;id Natasha...

[Show more]

Preview 2 out of 6  pages

  • August 20, 2022
  • 6
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
RHSCA
Add 3 users: harry, natasha, tom.
The requirements: The Additional group of the two users: harry, Natasha is the admin
group. The
user: tom's login shell should be non-interactive. - Answer Answer: # useradd -G admin
harry
# useradd -G admin natasha
# useradd -s /sbin/nologin tom
# id harry;id Natasha (Show additional group)
# cat /etc/passwd
RedHat EX200 Exam
"Certification Depends on Only One Thing" - www.actualanswers.com 2
(Show the login shell)
OR
# system-config-users

Configure a task: plan to run echo hello command at 14:23 every day. - Answer Answer:
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)

Find the files owned by harry, and copy it to catalog: /opt/dir - Answer Answer: # cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;

QUESTION NO: 6 CORRECT TEXT
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile,
and the
sequence is requested as the same as /etc/testfile. - Answer Answer: # cat /etc/testfile |
while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile

Create a 2G swap partition which take effect automatically at boot-start, and it should
not affect
the original swap partition - Answer Answer: # fdisk /dev/sda
p
(check Partition table)
n

, (create new partition: press e to create extended partition, press p to create the main
partition, and
theextended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)

Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it
needs you
to configure yum direct to the already existing file server. ) - Answer Answer: # cd
/etc/yum.repos.d
# vim local.repo
[local]
name=local.repo
baseurl=file:///mnt
enabled=1
gpgcheck=0
# yum makecache
# yum install -y vsftpd
# service vsftpd restart
# chkconfig vsftpd on
# chkconfig --list vsftpd
# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES

Configure a HTTP server, which can be accessed through
http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html. - Answer Answer: #
yum install -y httpd
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
<VirtualHost 192.168.0.254:80>
DocumentRoot /var/www/html/

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75619 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.99
  • (0)
  Add to cart