Tuesday, 5 September 2017

How to Setup Linux SSH Login Banner on Centos/RHEL 7



Most of the system administrator whenever configure Linux Servers always use login banner for sending a message before authentication. The banner contains some security warning information or general information. This option is only available for protocol version 2. By default, no banner is configured in SSH.

Sunday, 3 September 2017

How to configure SFTP Server on Centos/RHEL - Multiple users



SSH File Transfer Protocol (SFTP) is application protocol designed to allow easily transfer files between computers. Many users prefer to use SFTP. SFTP provides file access, transfer, and management tools that resemble FTP through a secure SSH connection. However, SFTP is not merely FTP over SSH. Instead, it is an entirely separate protocol. 

Saturday, 2 September 2017

How to Set Password Policy in /etc/login.defs on Centos/RHEL



The password aging controls and password length are defined in /etc/login.defs file. The password policy required to defining the number of days a password is valid, minimum length of a password, the strength of a password, and number of warning days before the password expires. To apply password policy, edit /etc/login.defs file and set PASS values.

Monday, 28 August 2017

How to set umask for a System User in RHEL/Centos



When user created a file or directory under in Centos/RHEL, the file or directory created with a default set of permissions. By default the file permission has 644 a directory created with 755 permissions, grants read, write, and execute permission to the owner and read and execute permission to groups and others.

How to set Daemon umask in RHEL/Centos



When a user creates a file or a directory under Linux, there is a set of default permission which is applied on those files and directory. These predefined permissions are assigned as per the value of default umask.

Saturday, 26 August 2017

How to disable Trace/Track in Apache/httpd



The TRACE method is enabled by default in an apache/httpd installation. This could expose server to certain Cross-Site Scripting attacks.  There are two methods directive and rewrite rule to disable the TRACE method. In this tutorial, we will show how to check for TRACE support on Apache2/httpd server using curl, and then disable if it is enabled.

Sunday, 20 August 2017

How to Disable Apache/httpd version/ ServerSignature



We can hide Apche/httpd to show versions and other information by adding two parameters ServerSignature and ServerTokens. By setting this ServerSignature off and ServerTokens Prod we restrict to display Apache/httpd version for clients.

Thursday, 17 August 2017

How to add Hibernate option to the Start Menu in Windows 10



By default the Hibernate option is not enabled in start menu power option. See the below screenshot: