RHCSA Test Questions with 100% Correct
Answers |Verified Latest Update
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. - ✔✔'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. - ✔✔'lvreduce -resizefs -L 220M /dev/mapper/vgsrv-shrink'
According the following requirements to create user, user group and the group members:- A
group named admin.- A user named mary, and belong to admin as the secondary group.- A user
named alice, and belong to admin as the secondary group.- A user named bobby, bobby's login
shell should be non-interactive. Bobby not belong to admin as the secondary group Mary, Alice,
bobby users must be set "password" as the user's password. - ✔✔'useradd -G admin mary'
'useradd -G admin Alice'
'useradd -s /sbin/nologin bobby'
'echo "password" | passwd -stdin mary'
'echo "password" | passwd -stdin alice'
'echo "password" | passwd -stdin bobby'
Install Dialog package - ✔✔'yum install dialog'
SELinux must run in force mode. - ✔✔vim /etc/sysconfig/selinux
###
SELINUX=enforcing
, 1. Find all sizes of 10k file or directory under the /etc directory, and copy to /tmp/findfiles
directory.
2. Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory. -
✔✔(1 )find /etc -size 10k -exec cp {} /tmp/findfiles ;
(2)find / -user lucy -exec cp -a {} /tmp/findfiles ;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and
user attributes etc.
Make on /archive directory that only the user owner and group owner member can fully access
- ✔✔'chmod 770 /archive'
Verify using : Is -Id /archive Preview should be like: drwxrwx— 2 root sysuser 4096 Mar 16
18:08 /archiveTo change the permission on directory we use the chmod command. According
to the question that only the owner user (root) and group member (sysuser) can fully access
the directory so: chmod 770 /archive
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory
and your FTP server is 192.168.0.254. Install the package zsh. - ✔✔wget
ftp://server1.example.com:/pub/updates/*
rpm -ivh .zsh
Create the user named eric and deny to interactive login. - ✔✔• useradd eric• passwd eric
• vi /etc/passwd
• eric:x:505:505::/home/eric:/sbin/nologin Which shell or program should start at login time is
specified in /etc/passwd file? By default, Redhat Enterprise Linux assigns the /bin/bash shell to
the users. To deny the interactive login, you should write/sbin/nologin or/bin/false instead of
login shell.
You are new System Administrator and from now you are going to handle the system and your
main task is Network monitoring, Backup and Restore. But you don't know the root password.
Change the root password to redhat and login in default Runlevel. - ✔✔rd.break
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 Examsplug. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.