Тёмный

RHCSA Exam Questions || cron || grep || Reset Root Password || passwd || RHEL 9 

DexTutor
Подписаться 13 тыс.
Просмотров 13 тыс.
50% 1

In this lecture, questions related to four key concepts are discussed:
1. Scheduling future tasks using cron in Linux : • crontab command in Lin...
2. grep command din Linux: • How to use grep comman...
3. Recover/Reset Root User Password in Linux: • How to Recover/Reset R...
4. passwd command in Linux: • passwd command in Linu...
The basics of these concepts are covered in separate videos (links above).
To schedule future or recurring tasks we use the crontab command. Linux uses the cron service to schedule recurring tasks, so make sure the cron service is running
grep command in Linux is used to search patterns within a file i.e., to find some content within the file, grep command is used.
passwd command in linux is used to change the user password.
Subscribe - / dextutor
This lecture is part of the RHCSA exam playlist: • RHCSA Exam Full Course
Other Reference Videos:
1. Container Part I - • RHCSA Exam Container Q...
2. SSH - • RHCSA Exam SSH topic |...
3. SELinux basics: • RHCSA Exam Networking ...
Tools Required:
1. RHEL environment
Other Playlists:
OS: • Operating System
Operating System Lab playlist: • Operating System Lab
Linux Essential: • Linux Tutorial For Beg...
Was this tutorial about cron, grep RHCSA exam helpful? If so, please share. Let me know your thoughts in the comments.
#linux #rhcsa #rhel9 #dextutor

Опубликовано:

 

11 дек 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@edith_1045
@edith_1045 2 года назад
Keep helping us sir.... Thank you
@dextutor
@dextutor 2 года назад
It's my pleasure
@ahmadjadelrab
@ahmadjadelrab Год назад
There is another quick way to restore the context of the shadow file after resting the password of the root # load_policy -i # restorecon - FvR /etc/shadow This is faster than restoring all context just restoring the context of the shadow file, no need to use touch /.autorelabel if you use above commands.
@luvk421
@luvk421 2 года назад
So questions are always different but of similar type?
@mouradbenahmeddaho356
@mouradbenahmeddaho356 Год назад
what about managing tmpfiles using systemd ?
@AndroidTap
@AndroidTap Год назад
There's an easier way to reset the password that requires no relabeling or remounting. Add only: systemd.debug_shell to the end of the Linux line, where you'd add rd.break. Ctrl-x to boot Then, on the login screen, press Alt-F9 or ctrl-alt-f9 to switch to TTY9 - a root shell. reset the password from here. No relabeling or remounting required
@dextutor
@dextutor Год назад
Great
@MrEjo14
@MrEjo14 Год назад
Fantastic way to achieve a password reset ;) Thanks!
@rehmanarshad1848
@rehmanarshad1848 3 месяца назад
If you have multiple mounted filesystems (such as static partitions, LVM, stratis, vdo). You might still need to relabel doing this approach, but when the dependency fails during boot up, the system will boot into emergency mode, and then you can provide root credentials and autorelabel and reboot the system. Then the system will relabel all the mount points when the dependency fails during boot and then it will work and mount the partitions and boot up normally and you can login in.
@rehmanarshad1848
@rehmanarshad1848 3 месяца назад
You can /var/log/boot.log and this is what the errors can look like: [ TIME ] Timed out waiting for device /dev/sdb3. [DEPEND] Dependency failed for /static_partitions/mount_point_3. [DEPEND] Dependency failed for Local File Systems. [DEPEND] Dependency failed for Mark the need to relabel after reboot. [ TIME ] Timed out waiting for device /dev/sdb6. [DEPEND] Dependency failed for /dev/sdb6. [DEPEND] Dependency failed for Swaps. [ TIME ] Timed out waiting for device /dev/sdb4. [DEPEND] Dependency failed for /static_partitions/mount_point_4. [ TIME ] Timed out waiting for device /dev/sdb5. [DEPEND] Dependency failed for /dev/sdb5. [ TIME ] Timed out waiting for device /dev/sdb2. [DEPEND] Dependency failed for /static_partitions/mount_point_2. [ TIME ] Timed out waiting for device /dev/sdb1. [DEPEND] Dependency failed for /static_partitions/mount_point_1.
@user-dk4ib6zw3s
@user-dk4ib6zw3s 9 месяцев назад
Hello there, How do you reset ROOT password when GRUB_TIMEOUT=0? I mean, boot-menu does not stay long enough to press “e” or make a selection?
@MohitGupta-iv3uc
@MohitGupta-iv3uc 6 месяцев назад
you have to edit the /etc/default/grub file find the line like below GRUB_TIMEOUT=5 or 0 in your case { Adjust value as per requirement save and exit by :wq! } grub2-mkconfig -o /boot/grub2/grub.cfg then you will get enough time to edit the boot loader entry.
@michaelmaynard7652
@michaelmaynard7652 Месяц назад
im having the hardest time getting into the boot loader for context im not using hyper-v vmware or vrtualbox im in a GLS VM console i reboot and when i press the arrow key it just starts the boot process again and loads the media
@michaelmaynard7652
@michaelmaynard7652 Месяц назад
ok figured it out lol i think in the exam using the up/down arrow will work but i had to make changes in the config file and then run this grub2-mkconfig -o /boot/grub2/grub.cfg
@michaelmaynard7652
@michaelmaynard7652 Месяц назад
and in the exam you will have a 5-10 sec count down but since im in a rh-124 and rh134 lab environment it was set to 0 its kind of weird that this particular topic isnt on the red hat rh124-134 class because it IS Defiantly ON THE EXAM.
@ayushshimpi
@ayushshimpi 10 месяцев назад
Create a crontab which will add user named ayush at 12pm on 16 Sep 2023 Sir command kya hogi ? Date Maine daldi but - command kya hogi ?? Useradd Ayush !?
@MohitGupta-iv3uc
@MohitGupta-iv3uc 6 месяцев назад
It should be like below 0 12 16 9 * /usr/sbin/useradd ayush { Note perform these with either root or user having sudo access }
@iam.nobody
@iam.nobody 11 месяцев назад
May I know why you are putting quotation on grep's keyword?
@michaelmaynard7652
@michaelmaynard7652 Месяц назад
because your not just searching for a string your searching for a pattern and grep could interpret it wrong
@mostafaemam3929
@mostafaemam3929 2 года назад
is there is more coming
@dextutor
@dextutor 2 года назад
Definitely
@yadvinderjaj2590
@yadvinderjaj2590 Год назад
Sir I gave the exam doing your practice but I stuck on question reset Root password for 30 minutes I used rd.break but it did not work and I miss all 6 question which I have to do after reset Root password ?
@minhazibnfaruk-vx6hx
@minhazibnfaruk-vx6hx Год назад
For RHEL 9 use init=/bin/bash method Not rd.break
@johnnydeals1705
@johnnydeals1705 Год назад
(RHEL 9) 1. Reboot the system 2. On the GRUB 2 boot screen, use the down arrow key on your keyboard to select the rescue mode. 3. Press the E key to interrupt the boot process. 4. Go to the end of the line that starts with linux by pressing Ctrl+E. 5. Add rd.break to the end of the line that starts with linux. 6. Press Ctrl+X to start the system with the changed parameters. 7. Press the Enter key to enter maintenance mode and the sh-5.1# prompt will appear. 8. To remount the file system as writable, run: # mount -o remount,rw /sysroot 9. To Enter the chroot environment, run: # chroot /sysroot 10. To reset the root password, run: # passwd 11. To enable the SELinux relabeling process on the following system boot, run: # touch /.autorelabel 12. Press Ctrl+D twice to exit the chroot environment and the maintenance mode.
@dextutor
@dextutor Год назад
Everything works perfectly fine. All the steps are correct. There might be some other issue or step that you might have missed or done wrongly.
@juniali123
@juniali123 Месяц назад
sorry today you did made the mistake setting the root passws, you did it on RHEL 8, however this is all about RHEL 9. And to reset the root passwd of RHEL 9 is different.
@dextutor
@dextutor Месяц назад
Hi..the process is exactly the same..this procedure will work in RHEL9 also.
@juniali123
@juniali123 12 дней назад
@@dextutor according to some other video thye were saying you should select the 2nd Kernel in RHEL9 is that correct?
@dextutor
@dextutor 10 дней назад
What is required is that we should be able to change the root password. So as long as you are able to change the root password, any method is fine and acceptable.
@yadvinderjaj2590
@yadvinderjaj2590 Год назад
sir do you have any contact number
Далее
RHCSA Exam Networking Questions || Hostname || RHEL 9
21:52
RHCSA RHEL 8 - Schedule tasks using at and cron
14:28
Reset Root Password - RHCSA v9 Review
10:02
Просмотров 4,8 тыс.
grep: A Practical Guide
13:55
Просмотров 71 тыс.
CRON - task scheduling in linux
39:31
Просмотров 128 тыс.
Break Rhel9 root password.
5:53
Просмотров 3,8 тыс.