image-2

How to Log Messages from a Remote Host to a Specific File in Rsyslog

Sometimes, you may want to save the log from a remote server to a specific file instead of /var/log/messages. you can set up log forwarding later that won’t include lots of junk. Step 1 Create a new conf file in /etc/rsyslog.d with below two lines, for example. we are going to save the log messages Read More

image-2

How to Change Default Permissions of /var/log on Linux

By default, /var/log/messages* are created with read-write permissions for ‘root’ user only. There might be a requirement to make the log files world readable for eg to allow an application to read and process the data in it. It is best to only change $umask once and use $FileCreateMode instead to change the mode. Add the Read More

image-2

How to Upgrade CentOS Stream 8 to CentOS Stream 9

This article will show how to update to CentOS Stream 9 from CentOS Stream 8. If only official repositories are used it is fairly easy to upgrade to the new rolling based CentOS Stream 9 release, which follows the Red Hat Enterprise Linux 9. Using unofficial or users’ repositories CentOS Stream 8 may lead to unstable system or break user’s system following this Read More

image-2

How to Convert an SSL Certificate to Other Formats

It is highly recommended that you convert to and from .pfx files on your own machine using OpenSSL so you can keep the private key there. Use the following OpenSSL commands to convert SSL certificate to different formats on your own machine: OpenSSL Convert PEM Convert PEM to DER openssl x509 -outform der -in certificate.pem Read More

image-2

How to Fix “missing newline or line too long” in a Linux Server

Question How to remove the following errors when noticed in “/etc/hosts.allow” and “/etc/hosts.deny” files. 1) auth|security:err| error sshd[7275222]: warning: /etc/hosts.allow, line0: missing newline or line too long 2) auth|security:err| error sshd[7275222]: warning: /etc/hosts.deny, line0: missing newline or line too long Answer To remove the errors do the following on the management node as root. Go to the Read More