Saturday, August 26, 2023

How to Lock the user account in Linux ?

 


[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# passwd -l postgres

Locking password for user postgres.

passwd: Success


Check the user account status :


[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]# passwd -S postgres

postgres LK 2022-10-04 -1 -1 -1 -1 (Password locked.)

[root@10.1.1.1 ~]#

[root@10.1.1.1 ~]#

No comments:

Post a Comment

Oracle Database Upgrade Matrix (Practical & Current)

  Oracle Database Upgrade Matrix (Practical & Current) 1. Supported Direct Upgrade Paths (Official & Safe) ✅ = Supported ⚠️ = Suppor...