Monday, January 11, 2021

How use Auditd Tool

 https://linuxhint.com/auditd_linux_tutorial/

https://www.tecmint.com/linux-system-auditing-with-auditd-tool-on-centos-rhel/


How to reset root account password on Exadata Comput nodes for X7-2 (Doc ID 2603917.1)

 In this Document

Goal
Solution
References


APPLIES TO:

Exadata X7-2 Hardware - Version All Versions and later
Information in this document applies to any platform.

GOAL

Reset root account password on Exadata Comput nodes for X7-2.

SOLUTION

Please base on the following steps to change your root password.

From step 2 below all commands have to be executed on System Console (either directly sitting in front of the physical system with console screen attached, via SSH remote SP console or Web Based ILOM remote console option.

  1.Reboot via the ILOM web interface either:
  ○via the web interface:
  ■For current ILOM versions:
  ■go to "Host Management", at "Power Control" choose 'Power Cycle" for "Settings"
  ■For older ILOM versions:
  ■go to "System Overview", at "Host Power" choose 'Power Cycle"
  ■From ILOM web interface start remote console by going to Remote Control -> Launch Remote Console
  ○via ssh remote SP console:
  ■reset /SYS
  ■start /SP/console
  2.On the ILOM web console or ssh remote SP console: when the Grub Menu screen appears, immediately hit the arrow down key. Please note, here is a short window for this , so carefully watch the screen.
  3.Select the proper line to boot from and press "p" to supply the GRUB password .  (<get password from support by filing an SR>)
  4.Press the "e" key to edit the boot entry
  5.Using the down arrow, select the line that starts with "linuxefi", then press the "e" key to edit
  6.At the grub2 line starting with "linuxefi" add at the end the following string: rd.break
  7.Press ctrl+x to boot or start
  8.First we will remount the sysroot file system in read and write mode and then use chroot to got into a chroot jail:

# mount -o remount,rw /sysroot
# chroot /sysroot

  9.Type passwd command in the command line and press same password twice for reset root password:

# passwd

  10.Make sure that all unlabel files ( including shadow ) get relabeled during booting:

# touch /.autorelabel

  11.Type the command to sync:

# sync 

  12. Reboot or power cycle the system.

How to Reset Root Password in Oracle Linux 7 (Doc ID 1954652.1)

 In this Document

Goal
Solution
References


APPLIES TO:

Linux OS - Version Oracle Linux 7.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64

GOAL

This article explains how root password can be reset on Oracle Linux 7.

SOLUTION

1. While booting GRUB 2 Edit Menu Option (by pressing E)

2. Select the line starts with linux16******* (append "rd.break" at the end of the line), e.g.:

linux16 **** rd.break


3. Press ctrl+x to boot or start.

4. First we will remount the sysroot file system in read and write mode and then use chroot to got into a chroot jail:

# mount -o remount,rw /sysroot
# chroot /sysroot


5. Type passwd command in the command line and press same password twice for reset root password:

# passwd


6. Make sure that all unlabel files ( including shadow ) get relabeled during booting:

# touch /.autorelabel


7. Type the command to sync:

# sync


8. Type twice exit command to leave & logout.

9. The system will apply some SELinux contexts and reboot.