Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

RHSCA(complete study guide with correct solutions.)

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
20-08-2022
Written in
2022/2023

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 additional group) # cat /etc/passwd RedHat EX200 Exam "Certification Depends on Only One Thing" - 2 (Show the login shell) OR # system-config-users Configure a task: plan to run echo hello command at 14:23 every day. 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: # 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: # 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: # 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: # cd /etc/.d # vim [local] name= 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/ anonymous_enable=YES Configure a HTTP server, which can be accessed through . Please download the released page from http://ip/dir/. Answer: # yum install -y httpd # chkconfig httpd on # cd /var/www/html # wget http://ip/dir/ # cp # vim /etc/httpd/conf/ NameVirtualHost 192.168.0.254:80 VirtualHost 192.168.0.254:80 DocumentRoot /var/www/html/ ServerName /VirtualHost Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as "password". And the certificate login successfully through can be downloaded from http://ip/dir/. After the user logs on , the user has no host directory unless you configure the autofs in the following questions. Answer: system-config-authentication LDAP Server: ldap// (In domain form, not write IP) OR # yum groupinstall directory-client (5-workstation -krb5 ) # system-config-authentication 1.User Account Database: LDAP 2.LDAP Search Base DN: dc=example,dc=com 3.LDAP Server: ldap:// (In domain form, not write IP) 4.Download CA Certificate 5.Authentication Method: LDAP password 6.Apply getent passwd ldapuser40 QUESTION NO: 12 CORRECT TEXT Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally. Answer: # chkconfig autofs on # cd /etc/ # vim /etc/r /rhome /etc/ # cp # vim ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40 * -rw,soft,intr 172.16.40.10:/rhome/& # service autofs stop # server autofs start # showmount -e 172.24.40.10 # su - ladpuser40 Configure the system synchronous as 172.24.40.10. Answer: Graphical Interfaces: System--Administration--Date & Time OR # system-config-date QUESTION NO: 14 CORRECT TEXT Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.) Answer: # vgdisplay (Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend) # lvdisplay (Check lv) # lvextend -L +110M /dev/vg2/lv2 # resize2fs /dev/vg2/lv2 mount -a (Verify) ------------------------------------------------------------------------------- (Decrease lvm) # umount /media # fsck -f /dev/vg2/lv2 # resize2fs -f /dev/vg2/lv2 100M # lvreduce -L 100M /dev/vg2/lv2 # mount -a # lvdisplay (Verify) OR # e2fsck -f /dev/vg1/lvm02 # resize2fs -f /dev/vg1/lvm02 # mount /dev/vg1/lvm01 /mnt # lvreduce -L 1G -n /dev/vg1/lvm02 # lvdisplay (Verify) QUESTION NO: 15 CORRECT TEXT Create a volume group, and set 16M as a extends. And divided a volume group containing 50 RedHat EX200 Exam "Certification Depends on Only One Thing" - 7 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data. Answer: # pvcreate /dev/sda7 /dev/sda8 # vgcreate -s 16M vg1 /dev/sda7 /dev/sda8 # lvcreate -l 50 -n lvm02 # 4 /dev/vg1/lvm02 # blkid /dev/vg1/lv1 # vim /etc/fstab # mkdir -p /mnt/data UUID=xxxxxxxx /mnt/data ext4 defaults 0 0 # vim /etc/fstab # mount -a # mount (Verify) Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available. Answer: # cat /etc/ # cd /boot # lftp it # get dr/dom/ # rpm -ivh # vim /etc/ default=0 Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take effect automatically at boot-start. Answer: # fdisk /dev/vda n +512M w # partprobe /dev/vda RedHat EX200 Exam "Certification Depends on Only One Thing" - 8 # mkfs -t ext4 /dev/vda5 # mkdir -p /data # vim /etc/fstab /dev/vda5 /data ext4 defaults 0 0 # mount -a Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M. Answer: # fdisk # partprobe # pvcreate /dev/vda6 # vgcreate -s 8M vg1 /dev/vda6 -s # lvcreate -n lvshare -l 50 vg1 -l # 4 /dev/vg1/lvshare # mkdir -p /mnt/data # vim /etc/fstab /dev/vg1/lvshare /mnt/data ext4 defaults 0 0 # mount -a # df -h Download ftp://192.168.0.254/pub/ to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start. Answer: # cd /root; wget ftp://192.168.0.254/pub/ # mkdir -p /media/cdrom # vim /etc/fstab /root/ /media/cdrom iso9660 defaults,loop 0 0 # mount -a mount [-t vfstype] [-o options] device dir QUESTION NO: 20 CORRECT TEXT Add admin group and set gid=600 Answer: # groupadd -g 600 admin

Show more Read less
Institution
Course

Content preview

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/

Written for

Course

Document information

Uploaded on
August 20, 2022
Number of pages
6
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$12.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EvaTee Phoenix University
Follow You need to be logged in order to follow users or courses
Sold
5202
Member since
4 year
Number of followers
3567
Documents
55578
Last sold
1 hour ago
TIGHT DEADLINE? I CAN HELP

Many students don\'t have the time to work on their academic papers due to balancing with other responsibilities, for example, part-time work. I can relate. kindly don\'t hesitate to contact me, my study guides, notes and exams or test banks, are 100% graded

3.8

947 reviews

5
451
4
167
3
171
2
48
1
110

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions