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

How to install package gTTS in python ?

  anurag@Anurags-MacBook-Air ~ % python3 -m pip show gTTS WARNING: Package(s) not found: gTTS anurag@Anurags-MacBook-Air ~ %   anurag@Anurag...