How to Generate Certificate Signing Request (CSR) on Linux

CSR stands for ‘Certificate Signing Request’, that is generated on the server where the certificate will be used on. A CSR contains information about to your organization and domain name, locality, and country and a public key that will be included in your certificate.

This article has 3 methods to create CSR (Certificate Signing Request) on Linux systems. You can choose any one of below methods. All methods will do the same task, only they have a detailed explanation.

Read More

How change user default directory on Linux System

You can use the usermod command to change the default home directory for a user.

usermod -d /path/to/dir username

What this command does is edit the file /etc/passwd. Opening /etc/passwd you will find there is a line for every user, including system users (mysql, posftix, etc), with seven fields per line denoted by colons.

The first field is our user and the last two fields are the starting directory and the shell. For example, the following line will login user mattdamon to /var/www/html/mattdamon.

mattdamon:x:0:0:root:/var/www/html/mattdamon:/bin/bash