Category Linux

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…

2 ways to list all users in Linux

Linux is designed to be a multi-user operating system, allowing multiple users to access and utilize the system concurrently. To effectively list the users on a Linux system, two powerful methods come into play: using the “cat /etc/passwd” command and…

2 ways to change file permissions in Linux

This article is part of the following series.   In Linux, file permissions play a crucial role in determining who can access, modify, or execute files and directories. The permissions are typically represented by a combination of read (r), write…

Resize Multipath disk on Linux

A multipath disk, also known as a “multipath device,” is a logical representation of a storage device in a storage area network (SAN) environment that utilizes multiple physical paths. In a multipath configuration, a storage device, such as a disk…