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:

command to kill all the processes running by a specific user

  following command can be used to kill all the processes running by oracle user, replace oracle by any user of interest. pkill -9 -u `id -u...