How To Lock and Unlock Users Account in Linux Easily - 10 Minutes Professional Tactic

Опубликовано: 12 Октябрь 2024
на канале: IT-KnowledgeBase
2,332
28

#stayinandexploreitkb #informationtechnology #blueteam #redteam #oscp #blackhat #pentester #pentesting #cybersecurity #hacker #tool #redteaming #bugbountytips #bugbounty #linux #nmam #linuxsudo #linuxserver #linuxsecurity #linuxuser
#cybersecurity #hacker #blueteam #readteam #tools #nmap oscp #blackhat #pentester #informationtechnology #pentesting #cybersecurity #hacker #tool #redteaming #bugbountytips #bugbounty #linux #linux_tutorial #fail2ban #iptables #linuxinhindi #linuxnetwork #linuxadministrator #linuxadmin #linuxadministration #linuxkernel #linuxforbeginners #security #hosting #vps #vpsserver #vpssecuritie #bestpractice #bestvideo

In this lecture, we will discuss” How to Lock and Unlock User Account in Linux Easily”.

To securely lock, disable and unlock users’ accounts in Linux Serves.

After watching this video you can definitely manage your Linux Users as this is part of managing users’ principal, you can professionally manage users’ accounts in your Linux VPS Servers, hosting servers, corporate Linux servers, SSH servers, etc.

To lock a user account, you can use two commands “usermod -L” and “passwd -”.

After locking down the user account, both commands simply add an exclamation mark (“!”) in the second field of the shadow file “/etc/shadow” which you can easily discover that account is in the locked state.

This method has to be executed by either root or privileged user accounts and locking the user account.

After the locking system will immediately deny any access which would be done directly using “su” or with “SSH (if password authentication) is enabled.

In this demonstration, I am using the “Ubuntu Desktop - 22.10” acting as a Ubuntu client and “Ubuntu Server - 22.10” for our SSH Server for remoting.

I have created three lab accounts for testing and evaluation purposes “User1, User2, and User3”.