if password has been expired and need to fix this issue.
In Step 1, Please login into your instance in rescue mode. Once you login into rescue mode. Then need to execute other command to fix password expiration issue in Step 2 ans Step 3.
Step 1
=====
Video Form
=======
1) OCI Compute - How To Reset Forgotten Root Password Using Serial Console For Oracle Linux 7, 8, and 9 [Video] KB101078
URL : fa-etmi-saasfaprod1.fa.ocs.oraclecloud.com/fscmUI/redwood/myknowledge/content/container/main/article?answerId=2940603
Oracle Document
============
OCI: How To Reset Forgotten Root Password Using Serial Console For Oracle Linux 6, 7, 8, and 9 Instances (Doc ID 2489923.1)
URL - https://mosemp.us.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=196232300826152&id=2489923.1&_afrWindowMode=0&_adf.ctrl-state=uu8heermb_841
Above video is for password reset. Though, you don't need to do password reset. Just execute below command in Step 2 to fix opc user expiration issue.
Step 2
=====
Once you're login into rescue mode then execute below commands.
# chage -l opc (Check the status of password expiration.)
If it's expired then set it to never
# chage -m 0 -M 99999 -I -1 -E -1 opc
# chage -l opc
Output should like below output once it set to never expire password.
Last password change :
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
Step 3
====
If it's OL 8 then run below command as mentioned in Oracle doc step 1. Check if SELinux is enabled then run below SELinux command.
Force an SELinux relable.
bash-4.4# touch /.autorelabel
bash-4.4#
When ready, resume normal bootup.
bash-4.4# sync
bash-4.4#
bash-4.4# sync
bash-4.4#
bash-4.4# exec /usr/sbin/init
No comments:
Post a Comment