Category Linux

2 ways to create users with Ansible

In the realm of IT automation, Ansible has emerged as a powerful tool for streamlining various administrative tasks. Among these tasks, user management stands out as a common and often repetitive process. Ansible provides two primary approaches for creating users:…

10 Underrated Linux Commands That Deserve More Attention

In recent months, I’ve encountered numerous articles with titles such as “20 Linux Commands You Should Know” or “Linux Survival Guide.” However, I’ve observed that most of these articles target beginners and cover basic commands like ls or echo. Considering…

3 ways to fix useradd: Permission denied in Linux

The “useradd: Permission denied” error typically occurs when the user executing the useradd command does not have the necessary permissions to create a new user account. To fix this error, you can try the following solutions: Switch to the root…

2 ways to check if user account is locked or not in Linux

understanding user password authentication in Linux The user authentication process in Linux typically involves validating the entered credentials against the stored user information in the /etc/passwd and /etc/shadow files. When a user attempts to log in, they provide a username…

understanding network CIDR /24

CIDR stands for Classless Inter-Domain Routing. It is a method used for allocating and routing IP addresses on the Internet. A /24 CIDR, such as 192.168.1.0/24, indicates that the first 24 bits are the network part of the address, leaving…