RHCSA Exam Practice | 2023/24
RHCSA Exam Practice | 2023/24 Reset root password - 1. Before the system starts up, interrupt the boot process by pressing E 2. Go to the end of the line that starts with 'Linux16' 3. type 4. Press CTRL+X 5. type mount -o remount,rw /sysroot 6. Enter 7. type chroot /sysroot 8. type passwd root 9. Assign a new password 10. touch /.autorelabel 11. Enter 12. exit twice 13. Allow the system to reboot and then login with the new root password Configure IP Address, Gateway, and Hostname - IP: 192.168.0.10 - Gateway: 192.168.0.254 - Hostname: - 1. # ip addr show - to view the current IP 2. # hostnamectl - to view the current hostname 3. # nmtui - to set a new hostname and new IP for the host 4. Select Edit a connection 5. Go to the internet interface (e.g.: eth0) 6. Go to IPv4 CONFIGURATION and change Automatic to Manual 7. Addresses Add 8. type 192.168.0.10 9. Go to Gateway 10. type 192.168.0.254 11. Go all the way down to Ok 12. Select Quit 13. # nmtui 14. Select Activate a connection 15. Select the internet interface and activate it 16. # ip addr show - to verify the IP change 17. # ip route - to verify the gateway change 18. # nmtui 19. Set system hostname 20. type 21. Click Ok to exit 22. # hostname - to verify hostname change 23. # reboot Create ext4 file system partition and mount it in a directory - Your system should have a new 500MiB physical partition mounted under /mnt/new with a 500MB ext4 filesystem - 1. # lsblk 2. choose unused disk 3. # fdisk /dev/diskname 4. n 5. p 6. Enter 7. Enter 8. +500M 9. Enter 10. p 11. w 12. # partprobe /dev/diskname 13. # lsblk - to verify partition creation 14. # 4 /dev/newpartitionname 15. # mkdir /mnt/new 16. # mount /dev/newpartitionname /mnt/new 17. # blkid /dev/newpartitionname 18. copy the UUID 19. # vim /etc/fstab 20. UUID=... /mnt/new ext4 defaults 0 0 21. # reboot Configure Permissions *Copy the file /etc/fstab to /var/tmp so that:* - the file /var/tmp/fstab is owned by the root user - the file /var/tmp/fstab belongs to the group root - the file /var/tmp/fstab should not be executable by anyone - the user andrew is abl
Información del documento
- Subido en
- 2 de octubre de 2023
- Número de páginas
- 7
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas