100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA – Questions With Complete A+ Solutions $19.99   Add to cart

Exam (elaborations)

RHCSA – Questions With Complete A+ Solutions

 5 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA – Questions With Complete A+ Solutions

Preview 3 out of 25  pages

  • October 24, 2024
  • 25
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
LeCrae
RHCSA – Questions With Complete A+ Solutions

How to add into sudoers user
How to setup sudo for a user Right Ans - echo /etc/sudoers.d/user01 >>
user01 ALL=(ALL) ALL
you can do like this....OR
in the file user20 ALL=(ALL) NOPASSWD:ALL
usermod -aG wheel user
visudo --> %wheel ALL=(ALL) ALL

How to add the sudoers group and give access Right Ans - To enable sudo
access to the group named gourp01
echo /etc/sudoers.d/group01 >> %group01 ALL=(ALL) AL

Configuring password ageing Right Ans - chage command will do this:
m=maximum, W warning, I inactivity

1- force user to change the password on the next login
2- display the information about user
3- expire account on 2-2-2020
4-command to expire the account and lock the command in same command.
5- asign no login shell
6- change the password policy for the consultant account to require a new
pass every 15 days
7-Set the passwords to expire 180 days from the current date for all users. Use
administrative rights to edit the configuration file.
8- The chown command can also be used to change group ownership of a file
by preceding the group name with a colon (:). For example, the following
command changes the group test_dir to admins:
9-The chown command can also be used to change both owner and group at
the same time
10- how to unlock the user Right Ans - 1- chage -d 0 user01
2- chage -l user01
3- i- # date -d "+45 days" +%F
ii # chage -E 2020-10-01 user01
4- chage -L -e 2019-0-05 user01
5- usermod -s /sbin/nologin user01
6- chage -M 15 consultant

,7-Set PASS_MAX_DAYS to 180in/etc/login.defs. Use administrative rights
when opening the file with the text editor. You can use the sudo vim
/etc/login.defs command to perform this step.
8-chown :admins test_dir
9-chown visitor:guests test_dir
#chown owner.group filename
10- usermod -U <username>

1- how to zip a directory
2- how to tar the folder
3- how to uncompress .tar file
4-by bzip2 compress the file anme testfile
5-unzip bzip2 file Right Ans - 1- tar -zcvf archive.tar.gz /folder
2- tar -cvf archive.tar.gz /foler
3- tar -xvf archine.tar.gz
4- bzip2 testfile
5- bzip2 -d

virtual machine activity :
1- how to list the vm
2- stop start the vm
3- check the information about the vm, storage and other information.
Right Ans - 1- virsh list --all
2-virsh start centos7.0
3- virsh edit centos7.0

on client command to mount nfs Right Ans - mount -t nfs
<ipaddressofthenfs.server>:/nfs /mnt/nfs

on client command to mount smb Right Ans - mount -t cifs //ip/share
/mnt/smb -o username=xyz,password=bvr

find grub to boot in a different kernel Right Ans - grubby --info=ALL

set grubby to index 5 Right Ans - grubby --set-default-index=5

verify the boot grubby Right Ans - grubby --default-index

, logical volume create command Right Ans - lvcreate -n <name> -L 3G
<name vgroup>

volume group command Right Ans - vgcreate <>vgname> /dev/sdc
/dev/sdb

extend the partition Right Ans - lvextend -L +200M /dev/RHCSA/pinehead

show link statistics
how to check the routes
trace path Right Ans - ip -s link show ens3
ip route /ip -6 route
tracepath access.redhat.com

Troubleshooting ports Right Ans - ss -ta
ss -la

add ip nmcli Right Ans - sudo nmcli con add con-name "static-addr" ifname
enX \
type ethernet ipv4.method manual \
ipv4.address 172.25.250.10/24 ipv4.gateway 172.25.250.254

modify the ip address Right Ans - nmcli

make partion and mount it under /mnt/data Right Ans - 1- lsblk --fs
/dev/vdb
2- parted /dev/vdb print
3- parted /dev/vdb mklabel msdos ----> for GPT put GPT/MBR =msdos
4-parted /dev/vdb mkpart primary xfs 2048s 1001MB
5-udevadm settle
6- lsblk --fs /dev/vdb ------ blkid
7- echo "UUID=e3db1abe-6d96-4faa-a213-b96a6f85dcc1 /archive xfs defaults
0 0" >>/etc/fstab
8- mount -a
9- sdsystemctl reboot

enteries of swap space in /etc/fstab Right Ans - UUID=af30cbb0-3866-
466a-825a-58889a49ef33 swap swap defaults 0 0
UUID=39e2667a-9458-42fe-9665-c5c854605881 swap swap pri=4 0 0

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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