shadow – POFTUT

Linux Etc Login.defs Configuration with Examples

Linux shadow password suite provides password related utils and configuration. /etc/login.defs or simple login.defs provides configuration about shadow utils. This file provides password, mail, user id, group id, user home related configuration. We will look all of the useful configurations in this tutorial. Login.defs Configuration File login.defs configuration file is located at /etc/login.defs . It is simple text file. … Read more

How To Check Password Strength In Linux With Cracklib?

Password security is important subject in IT. We call it password but actually it is a key to enter systems. Making authentication password-less by using key-based authentication is more secure but it is not always possible. So for the password-based authentication password strength is important. How Can We Make Passwords Strong Actually making passwords strong … Read more

How To Change or Rename Username and User ID In Linux?

The problem is we want to change the already created user name or user id. As we know there is a lot of configuration those rely on the user id like permissions. We will use usermod command to make this change. Keep in mind this changes will effects system wide. List User Info Before starting … Read more

How To Set or Change User Password In Linux?

Linux passwords are used to authenticate users. Linux passwords was hold in /etc/passwd file with other user related information like default shell, home directory path etc. Now in modern Linux distributions holds passwords in /etc/shadow file which have restricted access. This file holds user passwords as hash values with salt. Hashing and salting makes passwords … Read more

How To Disable or Lock Linux User Account?

How can I disable some Linux account? By disabling it I do not want to remove the account and related files. Just user related operations will be prevented. If an user authentication occurs it will be not authenticated. We will use usermod command to lock user account. Disable/Lock User Account with usermod Command We will disable account … Read more