Search This Blog

Wednesday, 14 May 2025

Lock the OCI Oracle cloud linux OS user

 Introduction:

Some times there is requirement not to delete the OS user but to lock it. Following can be followed to lock the user account on OCI Oracle cloud.


Resolution:


[root@oraclecloudlinuxserver ~]# passwd -l username

Locking password for user username.

passwd: Success




No comments:

OCI - Oralce linux - warning your password will expire in 6 days - use command "chage"

  If OS user gets the warning message for password expiry in OCI Oracle linux, then change the password expiry, following are the 2 methods ...