And Answers Latest upload 2024/2025 with 100% verified
Solutions
on reboot, if the system does not boot properly, select the RHEL server line, login to root, vim
/etc/fstab, and comment out the newly added line. then reboot again
Find all Files Owned by a User
- Find files in your system owned by the user andrew and copy all the files on /root/output directory -
ANSWER-1. # mkdir /root/output
2. # find / -user andrew -exec cp -rvp {} /root/output/ \:
3. # ls -al /root/output
Cron Job
- The user andrew must configure a cron job that runs daily at 15:25 local time and executes /bin/echo
hello - ANSWER-1. # crontab -l - to check scheduled jobs
2. # cat /etc/crontab - to check formatting
3. # crontab -e
4. 25 15 * * * andrew /bin/echo "hello"
5. save and exit
6. # systemctl enable crond
7. # systemctl start crond
8. # crontab -l - to verify
Resize LVM
- Resize your LVM partition to 350MiB - ANSWER-1. # fdisk /dev/diskname
2. n
3. p
4. Enter
, 5. +268M (Last sector -- we already have a LVM of 32M because of a previous question)
6. t
7. Enter
8. 8e
9. p
10. w
11. # partprobe /dev/diskname
12. # pvcreate /dev/newpartitionname
13. # pvs - to verify
14. # vgextend development /dev/newpartitionname
15. # vgs - to verify
16. # lvextend -L +268M /dev/development/engineering
17. # lvs - to verify
18. # xfs_growfs /dev/development/engineering
19. # lsblk - to verify
20. # reboot
21. # lvs - to verify
Authenticate Users from LDAP
*Authenticate users from LDAP Directory Servers which have:*
- ServerName: server1.example.com
- Base DN: dc=example,dc=com
- Download certificate from: ftp://server1.example.com/pub/EXAMPLE-CA-CERT
- Authenticate with users ldapuser1 with password == password
- Configure autofs such that a server home directory is server1.example.com:/home/guests/ldapuser1
on /home/guests/ldapuser1 - ANSWER-1. # yum -y install authconfig-gtk sssd autofs krb5*
2. # authconfig-gtk
3. LDAP Server: server1.example.com
4. Use TLS to encrypt connections