100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA Study Test Questions with Correct Answers $13.39   Add to cart

Exam (elaborations)

RHCSA Study Test Questions with Correct Answers

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

RHCSA Study Test Questions with Correct Answers Create the user named eric and deny to interactive login. - Answer-• 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 fil...

[Show more]

Preview 2 out of 6  pages

  • August 18, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
Scholarsstudyguide
RHCSA Study Test Questions with
Correct Answers

Create the user named eric and deny to interactive login. - Answer-• 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. -
Answer-rd.break
mount -o remount rw /sysroot
chroot /sysroot
passwd
passwd rx admin
touch /.autorelabel
Exit
Reboot

Make on data that only the user owner and group owner member can fully access. -
Answer-• chmod 770 /data
• Verify using : Is -Id /data Preview should be like:drwxrwx— 2 root sysadmin 4096 Mar
16 18:08 /dataTo change the permission on directory we use the chmod
command.According to the question that only the owner user (root) and group member
(sysadmin) can fully access the directory so: chmod 770 /data

1. Resize the logical volume vs and its filesystem to 290 MB. Make sure that the
filesystem contents remain intact. Note: Partitions are seldom exactly the same size
requested, so a seize within the range of 260 MB to 320 MiB is acceptable - Answer-
'lvdisplay'
'lvextend' -l 100M -r /dev/vg_name/lv_name'
###IF not enough space
'fdisk'
p, n, e, default, default, default, n, l, default, default, +100M, t, 8e, w
'partprobe'
'vgextend /dev/vg_name/ /dev/new_partition'

, 'lvextend -l 100M -r /dev/vg_name/lv_name

shrinking process:
'amount /mounted_path
lvreduce -L 100M -r /dev/vg_name/lv_name'
Remount filesystem:
if on fstab then 'mount -a'
if manually mounted ' mount /dev/vg_name/lv_name /mount_path

Create a volume group, and set the size is 500M, the size of single PE is 16M. Create
logical volume name lv0 in this volume group, set size is 20 PE, make it as ext3 file
system, and mounted automatically under data. - Answer-pvcreate /dev/vda3
vgcreate -s 16M vg0 /dev/vda3
lvcreate -n lv0 -l 20 vg0
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir/data /etc/fstab:
/dev/mapper/vg0-lv0 /data ext3 defaults 0 0
mount -a
mount | grep data

Create a swap space, set the size is 600 MB, and make it be mounted automatically
after rebooting the system/ - Answer-# cat /proc/partitions -> to know which partition you
will use the fdisk on# fdisk /dev/???p -> n -> p -> default -> default -> +600M -> t -> 82 -
> p -> w# partx /dev/????# partprobe# mkswap /dev/????# swapon /dev/????# swapon
-a# blkid -> to get the new swap partition ID# vim /etc/fstabUUID=xxxxxx swap swap
defaults 0 0# mount -a#df -hT

In the system mounted the iso image /root/examine.iso to /mnt/iso directory. And enable
automatically mount after restart. - Answer-mkdir -p /mnt/iso
vim /etc/fstab:
/root/examine.iso /mnt/iso iso9660 loop 0 0
mount -a
mount | grep examine

Add a new logical partition having size 100MB and create the data which will be the
mount point for the new partition - Answer-1. Use fdisk /dev/hda-> To create new
partition.2. Type n ->For New partitions3. It will ask for Logical or Primary Partitions.
Press I for logical.4. It will ask for the Starting Cylinder: Use the Default by pressing
Enter Keys5. Type the size: +100M you can specify either Last cylinder of size here.6.
Press P to verify the partitions lists and remember the partitions name7. Press w to
write on partitions table.8 Either Reboot or use partprobe command9 Use mkfs -t ext3
/dev/hda?

. /data Directory is shared from the served .example.com server. Mount the shared
directory that:
A. When users try to access, automatically should mount

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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